Introduction

GenTaR is designed to coordinate the production of transgenic mice between high-throughput mouse production facilities and consortia of clinicians and human geneticists while minimizing the overlap and maximizing efficiencies. GenTaR captures the intention of a consortium to produce mutant mice targeting a particular gene, and the progress of mouse production. It records information about the mutation created, and tracks the state of phenotyping performed on the mutant mouse line.

This is a secure resource that can house various types of mutations linked to genes, and will provide different data access policies to users.

This guide is aimed at developers of such applications.

1. Usage of HTTP Verbs

The following table describes how the GenTaR API interprets the HTTP verbs.

Table 1. HTTP Verbs
HTTP Verb Usage

GET

GET is used to retrieve information without changing the state of the system.

POST

POST is used to submit an entity to the specified resource, often causing a change in state or side effects on the system.

PUT

PUT method replaces all current representations of the target resource with the request payload.

Other verbs, such as DELETE, are not supported by GenTaR at present.

2. Pagination and Sorting

Most of the endpoints returning collections are paginated and can be sorted. If no parameters are specified, then the default ones are applied.

2.1. Pagination

The parameters to specify the pagination are:

Parameter

Description

page

Number of the page to retrieve. It starts with 0 (which is the default value).

size

Number of elements to retrieve.

2.2. Sorting

The parameters to specify the sorting are:

Parameter

Description

sort

Column and direction to sort, separated by comma. The directions are ASC or DESC. Example: sort=tpn,ASC

For example, to get the first 15 projects in the system, ordered by tpn, the call to the enpoint would be:

api/projects?page=0&size=15&sort=tpn,ASC

3. Authentication

After a user is registered in the system (see: Create a user), they can start working with GenTaR.

The first step begins with logging into GenTaR using the /auth/signin endpoint. The user issues a POST request to the endpoint and supplies the username and the password credentials specified at registration as the JSON request payload (see the Login Data Structure example below). A JSON Web Token (see https://jwt.io) is returned if the login is successful.

In all subsequent interactions with GenTaR the user provides the access token to authenticate each request to a protected route or resource. The tokens are signed by the server so the server can validate the signature of the token to grant the access to resources. The access token is a Base64 encoded String, that should be included as an Authorization HTTP header like this:

Authorization: Bearer eyJhbGciOiJSUzI1NiJIUzI1NiJ9.eyJpc3MiOiJjb2RlcmFkYXIiLCJleHAiOjE0ODQ1MTUzOTUsInR5cGUiOiJSRUZSRVNIIiwiaWF0IjoxNDg0NTE1NDU1LCJ1c2VySWQiOiIxIiwidXNlcm5hbWUiOiJyYWRhciJ9.zfkyc5jkPiAUEt7nU25SJxKprcPiXaiq0Q6bCJ_RrQo

The access token is short-lived and by default expires after 30 minutes.

A typical work flow follows this pattern:

  1. Client logs in with username and password to obtain a token

  2. Client interacts with resources in GenTaR by providing the access token in each request

  3. After 30 minutes client gets a 401-Response

  4. Clients logs in again and retrieves a new token to continue working with the system

See more:

3.1. POST

3.1.1. Successful authentication

Login Data Structure
Path Type Description

userName

String

The user name.

password

String

The password.

Example Request
POST /auth/signin HTTP/1.1
Content-Type: application/json
Content-Length: 85
Host: localhost:8080

{
  "userName" : "gentar_test_user1@gentar.org",
  "password" : "gentar_test_user1"
}
Example Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 806

{
  "userName" : "gentar_test_user1@gentar.org",
  "accessToken" : "eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6Iks3X0E1RXczWVlMT2Iyc3B1THZYU2ciLCJpYXQiOjE3MDg0NDE2NzUsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQ3NX0.JBHLdRS88btTIkJ2knqjqXegOxBRuXjMHX2wo2X3ZuZhpTd0uaJ4cs31msI7aDnDCZNzkLO6glb-usoxUp3JD32F7lHn9ud9kINPSav6SUxh2UYRP-pOI3U91iAZm2RElD1XnqH6FRWkbWgE5HVOZD4pa0w_q9opmcGX6qs9b9qVbLB6Yq7SCMhA0HrvfEu7NeJdoRzLuw060OxLEVPlOpts_1ho6HMu-bLLzCHJBzE07MJjn6dCEWUVv13FZdJeuKsezLdwa7SONWSN7Bm9OZeA9muo6GJHd59Wsjy4yD-OJRo0ZdWkivhzgkDnll7FWEL4L6Mm2Nsz_OB-_gV2YQ"
}
Response Structure
Path Type Description

userName

String

User name in the system (usually the email).

accessToken

String

The token to access the protected end points.

3.1.2. Error in authentication: user/password is incorrect

When trying to sign in with an incorrect user or password the system will return an error message.

request
POST /auth/signin HTTP/1.1
Content-Type: application/json
Content-Length: 77
Host: localhost:8080

{
  "userName" : "not-existing-user-auth-system",
  "password" : "password"
}
response
HTTP/1.1 401 Unauthorized
Content-Type: application/json
Content-Length: 208

{
  "apierror" : {
    "status" : "UNAUTHORIZED",
    "timestamp" : "20-02-2024 03:07:55",
    "message" : "Invalid userName/password provided.",
    "debugMessage" : "Please provide valid credentials."
  }
}

4. Users

This section describes the REST endpoints to manage users in the system.

4.1. Fields

These are the fields you are going to see in the body of a request in a GET or in the payload for POST or PUT operations.

Path Type Description

name

String

User name in the system.

email

String

User email

contactable

Boolean

Whether or not the user can be contacted through their email.

rolesWorkUnits[]

Array

Information about the work units that the user is associated with, along with the role the user has in each work unit.

rolesWorkUnits[].id

Number

Internal id of the record in the system.

rolesWorkUnits[].workUnitName

String

Name of the work unit.

rolesWorkUnits[].roleName

String

Name of the role.

rolesConsortia[]

Array

Information about the consortia that the user is associated with, along with the role the user has in each consortium.

rolesConsortia[].id

Number

Internal id of the record in the system.

rolesConsortia[].consortiumName

String

Name of the consortium.

rolesConsortia[].roleName

String

Name of the role.

isAdmin

Boolean

Whether or not the user is admin.

actionPermissions[]

Array

Information about the general permissions the user has.

actionPermissions[].actionName

String

Action name.

actionPermissions[].value

Boolean

True if the user has permission. False otherwise.

4.2. GET

4.2.1. Get Current Logged Person

Get the current user information. The current user is the owner of the token used in the request.

Example Request

Curl:

$ curl 'http://localhost:8080/api/people/currentPerson' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6IlJ1RnQtRVFtRFRwLTdoeVgxSVBvVkEiLCJpYXQiOjE3MDg0NDE2MDQsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQwNH0.S-9HpAtwyJDabsvduCTGjkfKNhWqUQusSVEaDMxpRDtnbJaTVsJWFa8_L6HZn01BmyS85FHHSKXbOzioqIDN1N2J1kVta5ASB1waQLxErKrd3mWMQzp_LHaJP7IQ-BCBlfn9-xxO77jU9zusoHz8owydS7gtOok2ki_BIlYXr5Xn4vbsVtnBvX3uZ0_MHuE3jXvuafIM4JsSqZdiPI6aT8k-jWawvQHrJUxuTcpJSZkDuyRMiYFeaIMkCCXd0ubtjVsCXixmINs1y-ViJ3c7m22VagNyAQfHh2xPdhm8X8qkFMvmvWpNCsGrNvwrgcOFLXk0inUgh6JXyqnJ0LV2Bg'
Example Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 551

{
  "name" : "Test user name",
  "email" : "gentar_test_user1@gentar.org",
  "contactable" : true,
  "rolesWorkUnits" : [ {
    "id" : 1,
    "workUnitName" : "UCD",
    "roleName" : "general"
  } ],
  "rolesConsortia" : [ {
    "id" : 1,
    "consortiumName" : "BaSH",
    "roleName" : "general"
  } ],
  "actionPermissions" : [ {
    "actionName" : "manageUsers",
    "value" : false
  }, {
    "actionName" : "executeManagerTasks",
    "value" : false
  }, {
    "actionName" : "canManageGeneLists",
    "value" : false
  } ],
  "isAdmin" : false
}

4.3. POST

4.3.1. Create a user

To create a user in the system specify the user in a JSON document that sent to the following endpoint.

Example Request

Curl:

$ curl 'http://localhost:8080/api/people' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6IjVVQzQwalYweFMwRU9BTHpVLWZIZ3ciLCJpYXQiOjE3MDg0NDE2MDEsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQwMX0.CeF7sSQR2C0TmKtmBse_HFZq9TCaP1CDwxncPzmPLPLN_IYozdrUIAM2O3E24h5CFTbVl_jg1xsOLg_6lLnwj_7rSP6Rq5vZp_GVMomgEPiSHXt0q2ogN4c7mb_99Uk4JKLaxStHYZHVGI4O7SZV_UWcsy6Is7oZM290AOFkzM2Kx-je1SIVeJyfDV52zndpXrov-nKifuFi4OPelaEk9JpQxVGmgPWSWa2Jz47fNssCZ7ty0yssmYHw8oPG-iuJ6txGAqyWk9_ljeRm3X_2lsIlWSdDWbIpx6pXR7ioiW9sO9QorpX7qRsKDQ9P4F8osfhrdABq0HNyWGOqQbvEbA' \
    -d '{
  "name" : "New User",
  "email" : "newuser@ebi.ac.uk",
  "password" : "newuser",
  "contactable" : true,
  "rolesWorkUnits" : [ {
    "workUnitName" : "UCD",
    "roleName" : "general"
  } ],
  "rolesConsortia" : [ {
    "consortiumName" : "CMG",
    "roleName" : "general"
  } ]
}'
Example Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 533

{
  "name" : "New User",
  "email" : "newuser@ebi.ac.uk",
  "contactable" : true,
  "rolesWorkUnits" : [ {
    "id" : 4,
    "workUnitName" : "UCD",
    "roleName" : "general"
  } ],
  "rolesConsortia" : [ {
    "id" : 3,
    "consortiumName" : "CMG",
    "roleName" : "general"
  } ],
  "actionPermissions" : [ {
    "actionName" : "manageUsers",
    "value" : false
  }, {
    "actionName" : "executeManagerTasks",
    "value" : false
  }, {
    "actionName" : "canManageGeneLists",
    "value" : false
  } ],
  "isAdmin" : false
}

4.3.2. Request password reset

An example of how to request a password reset for a specific user is shown below. When this endpoint is used, the user will receive an email with a link and a secret pin. By following the link and using the secret pin the user can set a new password.

Example Request

Curl:

$ curl 'http://localhost:8080/api/people/requestPasswordReset' -i -X POST \
    -H 'Content-Type: application/json' \
    -d 'gentar_test_user1@gentar.org'
Example Response
HTTP/1.1 200 OK

4.4. PUT

4.4.1. Update a managed user

This endpoint allows a manager to update some information for a user that is managed by them.

Example Request

Curl:

$ curl 'http://localhost:8080/api/people/gentar_test_user2@gentar.org' -i -X PUT \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6ImgwY0pDaGxqX01VVUxaakk4TWZxY2ciLCJpYXQiOjE3MDg0NDE2MDQsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQwNH0.i-KBRvJi4G9-R4EY4joXVozd0CuQazcWHlDY__BW7HHp2kXd-lFIBnE1R-HRQy9QJqVzOOGHcgKhi227q1UFWWBOLGoMtxhVegvta3Lhw9HEyuUnJDfIPy9Amu3FAzD6evKGNds9hq6UOA2XG716iMP8qI6lTohbEZFyEn3fmFZU6AgSqdGcexsLXU1X9_RiALOYsIfho6fMAQ3OyPkHqFFNUZuNbsyvmG3ZHzHC4VyhvT_8rrv0FqnaqLjVkWQqgzD4kEvyP18LF2eY492Cdn9nsWaEQ8BeUSM6BsxJKdTebllFd3kmzQkLX2bgGHlg4o7TQvIyKnA35U-FZTZGCA' \
    -d '{
  "name" : "Test user 2 name [edited]",
  "contactable" : false,
  "rolesWorkUnits" : [ {
    "id" : 2,
    "workUnitName" : "UCD",
    "roleName" : "general"
  } ],
  "rolesConsortia" : [ {
    "consortiumName" : "CMG",
    "roleName" : "general"
  } ]
}'
Example Response
HTTP/1.1 200 OK
Content-Disposition: inline;filename=f.txt
Content-Type: application/json
Content-Length: 562

{
  "name" : "Test user 2 name [edited]",
  "email" : "gentar_test_user2@gentar.org",
  "contactable" : false,
  "rolesWorkUnits" : [ {
    "id" : 2,
    "workUnitName" : "UCD",
    "roleName" : "general"
  } ],
  "rolesConsortia" : [ {
    "id" : 4,
    "consortiumName" : "CMG",
    "roleName" : "general"
  } ],
  "actionPermissions" : [ {
    "actionName" : "manageUsers",
    "value" : false
  }, {
    "actionName" : "executeManagerTasks",
    "value" : false
  }, {
    "actionName" : "canManageGeneLists",
    "value" : false
  } ],
  "isAdmin" : false
}

4.4.2. Update own user

This endpoint allows a user that is currently logged in the system to modify data like the name, password of whether they are contactable or not.

If a user wants to update their password, it’s necessary to provide the current password ('currentPassword' field) and the new password ('newPassword' field). Otherwise, the fields can be null or simply be omitted in the request.

Example Request

Curl:

$ curl 'http://localhost:8080/api/people' -i -X PUT \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6InhtOWdWcXpCQVFUUXBfNDVnWDVCelEiLCJpYXQiOjE3MDg0NDE2MDMsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQwM30.HkQHDQoOIRLg9rxfYRJkgve1LNGoFwemeg1-ZwSWleJuO9JyJzSeX5I2AZ1fartBshMCFb2AgQh2xZcr_DyUTw9M_w4Hx5WEVN9sRv6pt_5sQ316mshKr3RKLD0QtU83enca5bfXMZI5EM_Zcq86ObnWcEwdXMfZ-cHx7DdZHycjQ-QochFaHNzw3DVAbMD1OKrr9xSkc1844vmdmYkXFrp1RN3rLK-CA-1YzUsisOeOUxcthJU5h3aHZJyKkuKwfC9W9r2Y2AB8KzX8_YfNNP7dmwRO8GD63B_xbMkAcEciYpOqTrSYmWA_5y5uYn-1a7aPNoxfaiqdeJHNOcx5Uw' \
    -d '{
  "name" : "Test user 1 name [edited]",
  "contactable" : true,
  "currentPassword" : "gentar_test_user1",
  "newPassword" : "gentar_test_user1_new"
}'
Example Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 558

{
  "name" : "Test user 1 name [edited]",
  "email" : "gentar_test_user1@gentar.org",
  "contactable" : true,
  "rolesWorkUnits" : [ {
    "id" : 1,
    "workUnitName" : "UCD",
    "roleName" : "general"
  } ],
  "rolesConsortia" : [ {
    "id" : 1,
    "consortiumName" : "BaSH",
    "roleName" : "general"
  } ],
  "actionPermissions" : [ {
    "actionName" : "manageUsers",
    "value" : true
  }, {
    "actionName" : "executeManagerTasks",
    "value" : true
  }, {
    "actionName" : "canManageGeneLists",
    "value" : true
  } ],
  "isAdmin" : true
}

5. Projects

This section describes the REST endpoints for projects in the system.

A project in GenTaR is a top level object. It specifies an intention, and it is associated with one or more plans that contain information about production attempts, or the state of phenotyping.

5.1. Fields

These are the fields you are going to see in the body of a request in a GET or in the payload for POST or PUT operations.

Path Type Description

tpn

String

Public identifier for the project. Not editable, just for reference in the payload.

recovery

Boolean

[WIP]

esCellQcOnly

Boolean

Indicates if the project is only used for ES Cell QC

comment

String

Comment on this project.

privacyName

String

Privacy level for the project (public, protected or restricted).

projectIntentions

Array

Intentions for the project.

projectIntentions[].molecularMutationTypeName

String

Name of the molecular mutation.

projectIntentions[].mutationCategorizations

Array

Mutation categorizations linked to the project intention.

projectIntentions[].mutationCategorizations[].name

String

Name of type of the mutation categorization.

projectIntentions[].mutationCategorizations[].description

Null

Description of the mutation categorization.

projectIntentions[].mutationCategorizations[].typeName

String

Name of type of the mutation categorization.Possible values allele_category or repair_mechanism.

projectIntentions[].intentionByGene

Object

Gene in the intention.

projectIntentions[].intentionByGene.gene

Object

Gene information.

projectIntentions[].intentionByGene.gene.id

Number

Internal id of the gene in GenTaR.

projectIntentions[].intentionByGene.gene.name

String

Name of the gene.

projectIntentions[].intentionByGene.gene.symbol

String

Symbol of the gene.

projectIntentions[].intentionByGene.gene.externalLink

String

External link for the gene.

projectIntentions[].intentionByGene.gene.accessionId

String

Accession id for the gene, e.g MGI.

projectIntentions[].intentionByGene.gene.speciesName

String

Species associated with the gene.

projectIntentions[].intentionsBySequences

Array

Sequences in the intention.

projectIntentions[].intentionsBySequences[].index

Number

Index of the sequence

projectIntentions[].intentionsBySequences[].sequence

Object

Sequence information.

projectIntentions[].intentionsBySequences[].sequence.id

Number

Internal record id.

projectIntentions[].intentionsBySequences[].sequence.sequence

String

Sequence value.

projectIntentions[].intentionsBySequences[].sequence.typeName

String

Type of the sequence. Currently "complete,partial", "5_prime_end" or "3_prime_end"

projectIntentions[].intentionsBySequences[].sequence.categoryName

String

Type of the sequence. Currently "intention target sequence", "original starting sequence" or "outcome sequence" (the last one only valid for outcomes).

projectIntentions[].intentionsBySequences[].sequence.sequenceLocations

Array

Information about the locations and their order in the sequence.

projectIntentions[].intentionsBySequences[].sequence.sequenceLocations[].id

Number

Internal record id.

projectIntentions[].intentionsBySequences[].sequence.sequenceLocations[].locationIndex

Number

Index of the location (order).

projectIntentions[].intentionsBySequences[].sequence.sequenceLocations[].location

Object

Location information.

projectIntentions[].intentionsBySequences[].sequence.sequenceLocations[].location.id

Number

Internal record id.

projectIntentions[].intentionsBySequences[].sequence.sequenceLocations[].location.chr

String

Chromosome of the location.

projectIntentions[].intentionsBySequences[].sequence.sequenceLocations[].location.start

Number

Start position.

projectIntentions[].intentionsBySequences[].sequence.sequenceLocations[].location.stop

Number

Stop position.

projectIntentions[].intentionsBySequences[].sequence.sequenceLocations[].location.strand

String

Strand of the location.

projectIntentions[].intentionsBySequences[].sequence.sequenceLocations[].location.genomeBuild

String

Genome build used as reference.

projectIntentions[].intentionsBySequences[].sequence.sequenceLocations[].location.speciesName

String

Name of the species.

projectIntentions[].intentionsBySequences[].sequence.sequenceLocations[].location.strainName

String

Name of the strain.

projectIntentions[].intentionByGene.bestOrthologs[]

Array

A list of best orthologs for the gene (Support count > 4).

projectIntentions[].intentionByGene.allOrthologs[]

Array

A list of all orthologs for the gene.

projectIntentions[].intentionByGene.bestOrthologs[].symbol

String

Human gene symbol representing the predicted ortholog of the mouse gene.

projectIntentions[].intentionByGene.bestOrthologs[].category

String

Category assigned to the ortholog. Possible values: LOW, MODERATE and GOOD according to the support count. The LOW category indicates the ortholog prediction has a support count of less than 5. The MODERATE category indicates the prediction has a support count of between 5 and 8, and the GOOD category indicates the support count is between 9 and 12

projectIntentions[].intentionByGene.bestOrthologs[].support

Null

Services that predict this human gene to the ortholog of the mouse gene.

projectIntentions[].intentionByGene.bestOrthologs[].supportCount

Number

Counter of how many services support this ortholog designation.

projectIntentions[].intentionByGene.bestOrthologs[].link

String

URL of the HGNC entry for this gene.

projectIntentions[].intentionByGene.allOrthologs[].symbol

String

Human gene symbol representing the predicted ortholog of the mouse gene.

projectIntentions[].intentionByGene.allOrthologs[].category

String

Category assigned to the ortholog. Possible values: LOW, MODERATE and GOOD according to the support count. The LOW category indicates the ortholog prediction has a support count of less than 5. The MODERATE category indicates the prediction has a support count of between 5 and 8, and the GOOD category indicates the support count is between 9 and 12

projectIntentions[].intentionByGene.allOrthologs[].support

Null

Services that predict this human gene to the ortholog of the mouse gene.

projectIntentions[].intentionByGene.allOrthologs[].supportCount

Number

Counter of how many services support this ortholog designation.

projectIntentions[].intentionByGene.allOrthologs[].link

String

URL of the HGNC entry for this gene.

consortia

Array

Consortia associated with the project.

consortia[].id

Number

Internal record id.

consortia[].consortiumName

String

Name of the consortium.

_links

Object

Links for project.

_links.self.href

String

Link to the project.

_links.productionPlans

Array

Links to production plans.

_links.productionPlans[].href

String

Link to a specific production plan.

_links.phenotypingPlans

Array

Links to phenotyping plans.

_links.phenotypingPlans[].href

String

Link to a specific phenotyping plan.

assignmentStatusName

String

Assignment Status for the project. It could be marked as in conflict if existing projects are working in the same gene. Read only.

summaryStatusName

String

A status summarising the global status based on the statuses of the plans in the project. Read only.

reactivationDate

String

Date, represented as string, on which the project was activated again (assignment Status changed from inactive). Example: "2020-09-24T00:00:05". Read only.

completionNote

Null

Project completion note.

completionComment

Null

Project completion comment.

imitsMiPlanId

Number

iMits mi_plan identifier (Present if the project was transferrred from iMits). Read only.

relatedWorkUnitNames

Array

Work units associated with the project.

relatedWorkGroupNames

Array

Work groups associated with the project.

assignmentStatusStamps

Array

Stamps for the changes of Assignment Status. Read only.

colonyNames

Array

Production colonies related to the project. Read only.

phenotypingExternalRefs

Array

Phenotyping external references related to the project. Read only.

5.2. Filters

When you use request all projects, see the section Get all Projects, you can use filters on the result to select the information you require.

Filters are applied by appending the filter to the endpoint in the following fashion

/api/projects?<filter name>=<value to use as the filter>

Note: the names of the filters are case sensitive.

Filter values can be supplied as a comma separated list

For example, you could use this request to obtain information about the projects with the identifiers TPN:000000001 and TPN:000000004

/api/projects?tpn=TPN:000000001,TPN:000000004

You can also combine filters in the following fashion

/api/projects?gene=MGI:1202064&workUnitName=JAX

See the section Get all Projects using filters. for an example of a request that uses a filter.

This is the list of filters you can use:

Table 2. Filters for projects
Filter name Description

tpn

TPN(s) to be used as a filter. Eg: TPN:000000013.

intention

Name of the intention. Possible values:

  • Point Mutation

  • Deletion

  • Exon Deletion

  • Intra-exon deletion

  • Inter-exon deletion

  • Whole-gene deletion

  • Copy Number Variant

  • SNP

  • Insertion

  • Inverted insertion

  • Inversion

  • Indel

  • Complex rearrangement

gene

Marker symbol or accession id(s). Eg.Vps37a,MGI:1261835

workUnitName

Name of the work unit(s) associated with any of the plans in the project.

workGroupName

Name of the work group(s) associated with any of the plans in the project.

assignmentStatusName

Assignment Status Name. Possible values:

  • Assigned

  • Inspect - Conflict

  • Inactive

  • Abandoned

  • Inspect - Attempt

  • Inspect - GLT Mouse

summaryStatusName

Summary Status of the project. Eg: Plan Created.

colonyName

Colony name from production plan.

phenotypingExternalRef

Specimen or colony name in a phenotyping plan.

privacyName

The privacy of the project. Any of: public, protected, restricted.

imitsMiPlanId

Ids in iMits (if the project was migrated from iMits).

5.3. GET

5.3.1. Get a specific project

To obtain information about a specific project in the system you can use the TPN identifier to make a request like the one below.

Example Request

Curl:

$ curl 'http://localhost:8080/api/projects/TPN:000000001' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6Ik9NVTBuV3I0SnFEMjZvM1h0NWcxanciLCJpYXQiOjE3MDg0NDE2NzQsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQ3NH0.MucimWaEsT_7PwKNkbsvN0Q3w1fENzxt3Lbv_zA7ZPaW46XXSfKfgQNGYq_7KJ6NsW5cnB3hi816T0-KSTULvP3vzgqWTn8xtHojYv8wZMSR5LxgB2q5X1anckfKtXgJtgOS0CTErySqhtynit9fsjve590UhjFAV9TLYfDEF_vQiOFrMKAJh8X98cuTGnfsYHcsKUuwX0pCWVTgJGSmatDI-ypE4ZaMVOfsHfL8u06O0yJ3py84Mveb6KfzX_oxZ0Ng31MgYiTUJpAV_7Dz6z2VwkcIYLk-PZmxItCbDlDYKBqh7jIwD871eqStVIqdYvlHWOhSQ-dELxGHAl5wXA'
Example Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/hal+json
Content-Length: 2812

{
  "tpn" : "TPN:000000001",
  "recovery" : false,
  "esCellQcOnly" : false,
  "comment" : "Comment test",
  "reactivationDate" : "2020-09-24T00:00:02",
  "privacyName" : "public",
  "assignmentStatusName" : "Assigned",
  "summaryStatusName" : "Plan Created",
  "relatedWorkUnitNames" : [ "BCM" ],
  "relatedWorkGroupNames" : [ "BaSH" ],
  "completionNote" : null,
  "completionComment" : null,
  "_links" : {
    "self" : {
      "href" : "http://localhost:8080/api/projects/TPN:000000001"
    },
    "productionPlans" : [ {
      "href" : "http://localhost:8080/api/plans/PIN:0000000001"
    } ],
    "phenotypingPlans" : [ {
      "href" : "http://localhost:8080/api/plans/PIN:0000000002"
    } ]
  },
  "imitsMiPlanId" : 27136,
  "assignmentStatusStamps" : [ ],
  "projectIntentions" : [ {
    "molecularMutationTypeName" : "Point Mutation",
    "mutationCategorizations" : [ {
      "name" : "Null Reporter",
      "description" : null,
      "typeName" : "allele_category"
    } ],
    "intentionByGene" : {
      "bestOrthologs" : [ {
        "symbol" : "SERPINB10",
        "category" : "GOOD",
        "support" : null,
        "supportCount" : 9,
        "link" : "https://www.genenames.org/data/gene-symbol-report/#!/hgnc_id/SERPINB10"
      } ],
      "allOrthologs" : [ {
        "symbol" : "SERPINB10",
        "category" : "GOOD",
        "support" : null,
        "supportCount" : 9,
        "link" : "https://www.genenames.org/data/gene-symbol-report/#!/hgnc_id/SERPINB10"
      } ],
      "gene" : {
        "id" : 1,
        "symbol" : "Serpinb10",
        "speciesName" : "Mus musculus",
        "accessionId" : "MGI:2138648",
        "name" : "serine (or cysteine) peptidase inhibitor, clade B (ovalbumin), member 10",
        "externalLink" : "http://www.mousephenotype.org/data/genes/MGI:2138648"
      }
    },
    "intentionsBySequences" : [ {
      "index" : 1,
      "sequence" : {
        "id" : 1,
        "sequence" : ">Otog TGGGACTAGGTCACAGACAGAAAAAGGGGGATGAGAAGGCCTTAGATCTAAGGGAGGTAAAGAGAGAATTAACCACAGGAATTAGCACACTGAAGGATCGTGCTCGCCAGACCTCAAACCATCTCCTTCTTGCGTCATGAGAAAGCCTTGACCCATCATTTTCCAGTTTTCTGTGTTCTTGCCCCACTTTGGCCCCTGGATCCTGGGATCTCCCCAGAAATTCTTACCTAGCCCC",
        "typeName" : "complete",
        "categoryName" : "outcome sequence",
        "sequenceLocations" : [ {
          "id" : 1,
          "locationIndex" : 1,
          "location" : {
            "id" : 1,
            "chr" : "X",
            "start" : 1234567,
            "stop" : 7654321,
            "strand" : "+",
            "genomeBuild" : "GRCm38",
            "strainName" : "C57BL/6N",
            "speciesName" : "Mus musculus"
          }
        } ]
      }
    } ]
  } ],
  "consortia" : [ {
    "id" : 1,
    "consortiumName" : "CMG"
  } ],
  "colonyNames" : [ ],
  "phenotypingExternalRefs" : [ ]
}

5.3.2. Get all Projects

You can obtain all the projects that the user has permission to view using the following request. The response is paged, and by default a maximum of 20 results are returned.

Example Request

Curl:

$ curl 'http://localhost:8080/api/projects' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6ImpCcjRadk9rTm42aV94SXZJYVcwX0EiLCJpYXQiOjE3MDg0NDE2NzUsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQ3NX0.CmADcXILRvn_poNOLDoFaA7cC_2h2Kns95If1AopsmOjMgr7ACj7qylBzjyy9p-2YzyTNU_JPCu44pHHnZqCT3H96YjSMEf_IDQD3iLGjb94drPmwNG5hY7ZIck354Xx8yOyU9_TMcJ4pluWjm_ld2l4Vcyue0aC1HrhRil6XF7qL5WYdmaoiZmw-usAYjdEuztrVpyFgX_k20v-o47qLAem3r6uh1tmF9rgKwzS-b2ky9uy2kclKQy1dg-W9mVGsJaI5U-McQeADOu-1UtLmm5dLfYfjXKpcS7awX8zc4R2Rn800RCIJ5LeeEH_OZh1ZnCDQBdLmsF3CB3zo9kIJQ'
Example Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Link:
Content-Type: application/hal+json
Content-Length: 3399

{
  "_embedded" : {
    "projects" : [ {
      "tpn" : "TPN:000000001",
      "recovery" : false,
      "esCellQcOnly" : false,
      "comment" : "Comment test",
      "reactivationDate" : "2020-09-24T00:00:02",
      "privacyName" : "public",
      "assignmentStatusName" : "Assigned",
      "summaryStatusName" : "Plan Created",
      "relatedWorkUnitNames" : [ "BCM" ],
      "relatedWorkGroupNames" : [ "BaSH" ],
      "completionNote" : null,
      "completionComment" : null,
      "_links" : {
        "self" : {
          "href" : "http://localhost:8080/api/projects/TPN:000000001"
        },
        "productionPlans" : [ {
          "href" : "http://localhost:8080/api/plans/PIN:0000000001"
        } ],
        "phenotypingPlans" : [ {
          "href" : "http://localhost:8080/api/plans/PIN:0000000002"
        } ]
      },
      "imitsMiPlanId" : 27136,
      "assignmentStatusStamps" : [ ],
      "projectIntentions" : [ {
        "molecularMutationTypeName" : "Point Mutation",
        "mutationCategorizations" : [ {
          "name" : "Null Reporter",
          "description" : null,
          "typeName" : "allele_category"
        } ],
        "intentionByGene" : {
          "bestOrthologs" : [ {
            "symbol" : "SERPINB10",
            "category" : "GOOD",
            "support" : null,
            "supportCount" : 9,
            "link" : "https://www.genenames.org/data/gene-symbol-report/#!/hgnc_id/SERPINB10"
          } ],
          "allOrthologs" : [ {
            "symbol" : "SERPINB10",
            "category" : "GOOD",
            "support" : null,
            "supportCount" : 9,
            "link" : "https://www.genenames.org/data/gene-symbol-report/#!/hgnc_id/SERPINB10"
          } ],
          "gene" : {
            "id" : 1,
            "symbol" : "Serpinb10",
            "speciesName" : "Mus musculus",
            "accessionId" : "MGI:2138648",
            "name" : "serine (or cysteine) peptidase inhibitor, clade B (ovalbumin), member 10",
            "externalLink" : "http://www.mousephenotype.org/data/genes/MGI:2138648"
          }
        },
        "intentionsBySequences" : [ {
          "index" : 1,
          "sequence" : {
            "id" : 1,
            "sequence" : ">Otog TGGGACTAGGTCACAGACAGAAAAAGGGGGATGAGAAGGCCTTAGATCTAAGGGAGGTAAAGAGAGAATTAACCACAGGAATTAGCACACTGAAGGATCGTGCTCGCCAGACCTCAAACCATCTCCTTCTTGCGTCATGAGAAAGCCTTGACCCATCATTTTCCAGTTTTCTGTGTTCTTGCCCCACTTTGGCCCCTGGATCCTGGGATCTCCCCAGAAATTCTTACCTAGCCCC",
            "typeName" : "complete",
            "categoryName" : "outcome sequence",
            "sequenceLocations" : [ {
              "id" : 1,
              "locationIndex" : 1,
              "location" : {
                "id" : 1,
                "chr" : "X",
                "start" : 1234567,
                "stop" : 7654321,
                "strand" : "+",
                "genomeBuild" : "GRCm38",
                "strainName" : "C57BL/6N",
                "speciesName" : "Mus musculus"
              }
            } ]
          }
        } ]
      } ],
      "consortia" : [ {
        "id" : 1,
        "consortiumName" : "CMG"
      } ],
      "colonyNames" : [ ],
      "phenotypingExternalRefs" : [ ]
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "http://localhost:8080/api/projects"
    }
  },
  "page" : {
    "size" : 40,
    "totalElements" : 1,
    "totalPages" : 1,
    "number" : 0
  }
}

5.3.3. Get all Projects using filters.

You can also apply filters to the endpoint to refine the search.Each filter admits several values separated by comma. The filters you can use are listed above under the section Filters.

Example Request

Curl:

GET /api/projects?assignmentStatusName=Assigned HTTP/1.1
Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6IlNLX2NLeHFicjNIWU54YUpmMVcwSVEiLCJpYXQiOjE3MDg0NDE2NzQsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQ3NH0.HmdysdFiMTcTmmw8L2xjtzX6h364TvIw4-gF4Dzpz2K3ZKuwaLjdGXBR_Cyk-d8P_3Tesn8KLpYt9r52A8TtTb7OCmdgJIThQDkaSxBwQp7rI3R0Zh7RRPe-07RaZbR4EmP2guqgptSXpU5T_fy0eW2cjXI3iWFKWN9Qmz73YbaLsmT3VvUxptszo2vrsukxiYKODrqkQCOELL9oCe0IvmpbLUmLnpCCgOSbcJtUYurrp66e6jZ-XVDLMV33Gfx8ayRbW0ctXwTA0yngJecWhliXqH04sqMceP1zlx8TcxH6THh4rrJsfa_-LIaHrdiMZ_DnOsLzLlW40P03tAbH8g
Host: localhost:8080
Example Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Link:
Content-Type: application/hal+json
Content-Length: 3399

{
  "_embedded" : {
    "projects" : [ {
      "tpn" : "TPN:000000001",
      "recovery" : false,
      "esCellQcOnly" : false,
      "comment" : "Comment test",
      "reactivationDate" : "2020-09-24T00:00:02",
      "privacyName" : "public",
      "assignmentStatusName" : "Assigned",
      "summaryStatusName" : "Plan Created",
      "relatedWorkUnitNames" : [ "BCM" ],
      "relatedWorkGroupNames" : [ "BaSH" ],
      "completionNote" : null,
      "completionComment" : null,
      "_links" : {
        "self" : {
          "href" : "http://localhost:8080/api/projects/TPN:000000001"
        },
        "productionPlans" : [ {
          "href" : "http://localhost:8080/api/plans/PIN:0000000001"
        } ],
        "phenotypingPlans" : [ {
          "href" : "http://localhost:8080/api/plans/PIN:0000000002"
        } ]
      },
      "imitsMiPlanId" : 27136,
      "assignmentStatusStamps" : [ ],
      "projectIntentions" : [ {
        "molecularMutationTypeName" : "Point Mutation",
        "mutationCategorizations" : [ {
          "name" : "Null Reporter",
          "description" : null,
          "typeName" : "allele_category"
        } ],
        "intentionByGene" : {
          "bestOrthologs" : [ {
            "symbol" : "SERPINB10",
            "category" : "GOOD",
            "support" : null,
            "supportCount" : 9,
            "link" : "https://www.genenames.org/data/gene-symbol-report/#!/hgnc_id/SERPINB10"
          } ],
          "allOrthologs" : [ {
            "symbol" : "SERPINB10",
            "category" : "GOOD",
            "support" : null,
            "supportCount" : 9,
            "link" : "https://www.genenames.org/data/gene-symbol-report/#!/hgnc_id/SERPINB10"
          } ],
          "gene" : {
            "id" : 1,
            "symbol" : "Serpinb10",
            "speciesName" : "Mus musculus",
            "accessionId" : "MGI:2138648",
            "name" : "serine (or cysteine) peptidase inhibitor, clade B (ovalbumin), member 10",
            "externalLink" : "http://www.mousephenotype.org/data/genes/MGI:2138648"
          }
        },
        "intentionsBySequences" : [ {
          "index" : 1,
          "sequence" : {
            "id" : 1,
            "sequence" : ">Otog TGGGACTAGGTCACAGACAGAAAAAGGGGGATGAGAAGGCCTTAGATCTAAGGGAGGTAAAGAGAGAATTAACCACAGGAATTAGCACACTGAAGGATCGTGCTCGCCAGACCTCAAACCATCTCCTTCTTGCGTCATGAGAAAGCCTTGACCCATCATTTTCCAGTTTTCTGTGTTCTTGCCCCACTTTGGCCCCTGGATCCTGGGATCTCCCCAGAAATTCTTACCTAGCCCC",
            "typeName" : "complete",
            "categoryName" : "outcome sequence",
            "sequenceLocations" : [ {
              "id" : 1,
              "locationIndex" : 1,
              "location" : {
                "id" : 1,
                "chr" : "X",
                "start" : 1234567,
                "stop" : 7654321,
                "strand" : "+",
                "genomeBuild" : "GRCm38",
                "strainName" : "C57BL/6N",
                "speciesName" : "Mus musculus"
              }
            } ]
          }
        } ]
      } ],
      "consortia" : [ {
        "id" : 1,
        "consortiumName" : "CMG"
      } ],
      "colonyNames" : [ ],
      "phenotypingExternalRefs" : [ ]
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "http://localhost:8080/api/projects"
    }
  },
  "page" : {
    "size" : 40,
    "totalElements" : 1,
    "totalPages" : 1,
    "number" : 0
  }
}

5.4. POST

5.4.1. Create a project

In order to create a project, it is necessary to create at least one plan that is attached to it (palnDetails object). Tne intention(s) of the project are defined in the creation. It can be a gene and one or more sequences. The complete set of fields used in the creation are the following:

Fields in project creation:

Path Type Description

recovery

Boolean

[WIP]

esCellQcOnly

Boolean

Indicates if the project is only used for ES Cell QC

comment

String

Comment on this project.

privacyName

String

Privacy level for the project (public, protected or restricted).

projectIntentions

Array

Intentions for the project.

projectIntentions[].molecularMutationTypeName

String

Name of the molecular mutation.

projectIntentions[].mutationCategorizations

Array

Mutation categorizations linked to the project intention.

projectIntentions[].mutationCategorizations[].name

String

Name of type of the mutation categorization.

projectIntentions[].mutationCategorizations[].description

Null

Description of the mutation categorization.

projectIntentions[].mutationCategorizations[].typeName

String

Name of type of the mutation categorization.Possible values allele_category or repair_mechanism.

projectIntentions[].intentionByGene

Object

Gene in the intention.

projectIntentions[].intentionByGene.gene

Object

Gene information.

projectIntentions[].intentionByGene.gene.id

Null

Internal id of the gene in GenTaR.

projectIntentions[].intentionByGene.gene.name

Null

Name of the gene.

projectIntentions[].intentionByGene.gene.symbol

String

Symbol of the gene.

projectIntentions[].intentionByGene.gene.externalLink

Null

External link for the gene.

projectIntentions[].intentionByGene.gene.accessionId

String

Accession id for the gene, e.g MGI.

projectIntentions[].intentionByGene.gene.speciesName

Null

Species associated with the gene.

projectIntentions[].intentionsBySequences

Array

Sequences in the intention.

projectIntentions[].intentionsBySequences[].index

Number

Index of the sequence

projectIntentions[].intentionsBySequences[].sequence

Object

Sequence information.

projectIntentions[].intentionsBySequences[].sequence.sequence

String

Sequence value.

projectIntentions[].intentionsBySequences[].sequence.typeName

String

Type of the sequence. Currently "complete,partial", "5_prime_end" or "3_prime_end"

projectIntentions[].intentionsBySequences[].sequence.categoryName

String

Type of the sequence. Currently "intention target sequence", "original starting sequence" or "outcome sequence" (the last one only valid for outcomes).

projectIntentions[].intentionsBySequences[].sequence.sequenceLocations

Array

Information about the locations and their order in the sequence.

projectIntentions[].intentionsBySequences[].sequence.sequenceLocations[].locationIndex

Number

Index of the location (order).

projectIntentions[].intentionsBySequences[].sequence.sequenceLocations[].location

Object

Location information.

projectIntentions[].intentionsBySequences[].sequence.sequenceLocations[].location.chr

String

Chromosome of the location.

projectIntentions[].intentionsBySequences[].sequence.sequenceLocations[].location.start

Number

Start position.

projectIntentions[].intentionsBySequences[].sequence.sequenceLocations[].location.stop

Number

Stop position.

projectIntentions[].intentionsBySequences[].sequence.sequenceLocations[].location.strand

String

Strand of the location.

projectIntentions[].intentionsBySequences[].sequence.sequenceLocations[].location.genomeBuild

String

Genome build used as reference.

projectIntentions[].intentionsBySequences[].sequence.sequenceLocations[].location.speciesName

String

Name of the species.

projectIntentions[].intentionsBySequences[].sequence.sequenceLocations[].location.strainName

String

Name of the strain.

planDetails

Object

Plan with minimum information to be created alongside with the project.

planDetails.funderNames

Array

Name of the funders in for the plan.

planDetails.workUnitName

String

Work unit of the plan.

planDetails.workGroupName

String

Work group of the plan.

planDetails.comment

String

Comment in the plan.

planDetails.attemptTypeName

String

Attempt type name.

planDetails.typeName

String

Plan type name.

consortia

Array

Consortia associated with the project.

consortia[].consortiumName

String

Name of the consortium.

Example Request

Curl:

POST /api/projects HTTP/1.1
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6ImVpOTZpY0VoRzNkcHQzVE1ZRXYxeWciLCJpYXQiOjE3MDg0NDE2NzIsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQ3Mn0.A__xHC21rRJ6b9YXeaOlirD8DZZKdQQRz2tmLJGugWmC03celkmNxu6H0xSEg_mPzWhu-oOr8rP1-miPc_H1sTrIOX_EprMuSDAxlMDdPP7gxIO262J-E2tNtuxyOUosVREnspa__krNU4-zIz_8YXN5yQeiQvZ4nHz_6roiUO_9Q8z-oEXbvWOmHJcPpfqMObtZ0ruzWny2JP8vm5A-afcnvPJV4MEgpkUJMGTiJPxKcqjHCUV-BjVAiSYLeRR8JXRBzFXJiJKTmu-kqKfoJFsU4ma-O26NSK1_W8pIVFnE1liUEODwXxI_bOBTucvCOdpGTggsqiILpXPOwuPSjQ
Content-Length: 1732
Host: localhost:8080

{
  "recovery" : false,
  "esCellQcOnly" : false,
  "comment" : "comment",
  "privacyName" : "public",
  "planDetails" : {
    "funderNames" : [ "KOMP" ],
    "workUnitName" : "BCM",
    "workGroupName" : "BaSH",
    "comment" : "Plan comment",
    "attemptTypeName" : "crispr",
    "typeName" : "production"
  },
  "projectIntentions" : [ {
    "molecularMutationTypeName" : "Point Mutation",
    "mutationCategorizations" : [ {
      "name" : "Null Reporter",
      "description" : null,
      "typeName" : "allele_category"
    } ],
    "intentionByGene" : {
      "gene" : {
        "id" : null,
        "name" : null,
        "symbol" : "Serpinb10",
        "speciesName" : null,
        "externalLink" : null,
        "accessionId" : "MGI:2138648"
      }
    },
    "intentionsBySequences" : [ {
      "sequence" : {
        "sequence" : ">Gpr173 Cas9 high_Gpr173_11766 \n GATGGTTTGAGAGCCTGGACTGAAGCTTGAAAGAGAAGGCTTCTGTATGGGTCCCACCCTTCCCCTGCTGCTGGCCCCCGTATGGTGATTCTGACTTTCCCCCTGCCTATGATCAGTCCCAGCAGCACCAGCTTCACATAAGCCGATGCTGATGGCAGAGACAGTGCGCCGCTCACCTCTTCGGGCTCTCCGGTGGTGTTGGCCATACTGAGGGGCAAAGGCTACCCCCAACCCTAGGGGATTGGCCAGTTCAGTATTTGATGGGCCCTGGCGGACTCCATCAGTTTTCTTGCTGAGCTACACCTGCAAATGGGAACA",
        "typeName" : "partial",
        "categoryName" : "original starting sequence",
        "sequenceLocations" : [ {
          "locationIndex" : 1,
          "location" : {
            "chr" : "X",
            "start" : 123456,
            "stop" : 654321,
            "strand" : "+",
            "genomeBuild" : "GRCm38",
            "speciesName" : "Mus musculus",
            "strainName" : "C57BL/6N"
          }
        } ]
      },
      "index" : 1
    } ]
  } ],
  "consortia" : [ {
    "consortiumName" : "CMG"
  } ]
}
Example Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/hal+json
Content-Length: 598

{
  "_links" : {
    "self" : {
      "href" : "http://localhost:8080/api/projects/TPN:000000007"
    }
  },
  "history" : [ {
    "id" : 1,
    "user" : "gentar_test_user1@gentar.org",
    "date" : "2024-02-20T15:07:53.310519263",
    "comment" : "Project updated",
    "details" : [ {
      "field" : "summaryStatus.name",
      "oldValue" : null,
      "newValue" : "Plan Created",
      "note" : "Field changed"
    } ]
  }, {
    "id" : 2,
    "user" : "gentar_test_user1@gentar.org",
    "date" : "2024-02-20T15:07:53.312476714",
    "comment" : "Project created",
    "details" : [ ]
  } ]
}
Fields in Response
Path Type Description

history[].id

Number

Id to see the order.

history[].user

String

User that did the change.

history[].date

String

Date of the change.

history[].comment

String

Comment about the change.

history[].details[]

Array

Details of the changes.

history[].details[].field

String

Field that was changed.

history[].details[].oldValue

String

Value before the change.

history[].details[].newValue

String

Value after the change.

history[].details[].note

String

One of these: Field changed, Element added, Element deleted.

_links.self.href

String

Link to the resource

5.5. PUT

5.5.1. Update a project

You can update some information in a project if you are related with any of the work units specified in the plans of the project.

Example Request

Curl:

PUT /api/projects/TPN:000000001 HTTP/1.1
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6Ik0zbUdobDRRb0JWczRtd0huRTRfWXciLCJpYXQiOjE3MDg0NDE2NzMsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQ3M30.E3IP-lLEIw5tqdXNbdppsJWCn6tcrMpSrmT94WEnc6YGM8wrmi_KHRt0hMUUmJHY7g12UZdjqC_pV9pWp3_KqPQMUBBqp2mP19vFpIG7BQfa1BzI_TBR4OAysI_BhSH1TPek7UQwQtfE51kq_qCqO9fiaTKN-PPcyNXIpE8CQd5hiVKZ8L5qvOVBEDPxDtE4jSjky0HfVEMORv3D7NkyTkkTGslrTRaz4mzG11WZyedHH0tIq5ijTq2sbDBdzCbMJc6BWGOom21kzxfkd079iW5bSyD09F7JEyUDBmfueVaS3gB9lGfPL7uOazZ9ri_lnR3O4w4nsnRVwuEqZF-yfw
Content-Length: 137
Host: localhost:8080

{
  "tpn" : "TPN:000000001",
  "recovery" : true,
  "esCellQcOnly" : true,
  "comment" : "A new comment",
  "privacyName" : "protected"
}
Example Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/hal+json
Content-Length: 814

{
  "_links" : {
    "self" : {
      "href" : "http://localhost:8080/api/projects/TPN:000000001"
    }
  },
  "history" : [ {
    "id" : 1,
    "user" : "gentar_test_user1@gentar.org",
    "date" : "2024-02-20T15:07:53.890766039",
    "comment" : "Project updated",
    "details" : [ {
      "field" : "comment",
      "oldValue" : "Comment test",
      "newValue" : "A new comment",
      "note" : "Field changed"
    }, {
      "field" : "esCellQcOnly",
      "oldValue" : "false",
      "newValue" : "true",
      "note" : "Field changed"
    }, {
      "field" : "privacy.name",
      "oldValue" : "public",
      "newValue" : "protected",
      "note" : "Field changed"
    }, {
      "field" : "recovery",
      "oldValue" : "false",
      "newValue" : "true",
      "note" : "Field changed"
    } ]
  } ]
}
Fields in Response
Path Type Description

history[].id

Number

Id to see the order.

history[].user

String

User that did the change.

history[].date

String

Date of the change.

history[].comment

String

Comment about the change.

history[].details[]

Array

Details of the changes.

history[].details[].field

String

Field that was changed.

history[].details[].oldValue

String

Value before the change.

history[].details[].newValue

String

Value after the change.

history[].details[].note

String

One of these: Field changed, Element added, Element deleted.

_links.self.href

String

Link to the resource

6. Plans

This section describes the REST endpoints for plans in the system.

6.1. Fields

These are the fields you are going to see in the body of a request in a GET or in the payload for POST or PUT operations.

6.1.1. CRISPR plan.

Path Type Description

pin

String

Public identifier for the plan.

tpn

String

Public identifier for the project.

typeName

String

Plan type.

attemptTypeName

String

Attempt type.

comment

Null

Comment for the plan

statusName

String

Current status of the plan.

statusDates[]

Array

Stamps of the statuses the plan has gone through.

statusDates[].statusName

String

Status that the plan had on a specific date.

statusDates[].date

String

Date of the status change.

summaryStatusName

String

A status summarising the global status based on the statuses of the children of the plan.

_links.self.href

String

Link to the plan.

_links.project.href

String

Link to the project.

summaryStatusDates[]

Array

Stamps of the statuses summaries the plan has gone through.

summaryStatusDates[].statusName

String

Summary status that the plan had on a specific date.

summaryStatusDates[].date

String

Date of the summary status change.

funderNames

Array

Funders for the plan.

workUnitName

String

Work unit for the plan.

workGroupName

String

Work group for the plan.

statusTransition

Object

Information about the current state in the state machine for the plan.

statusTransition.currentStatus

String

Current status in the plan

statusTransition.transitions[]

Array

Transitions in the state machine given the current state.

statusTransition.transitions[].action

String

Action or transition’s name.

statusTransition.transitions[].description

String

Transition’s description.

statusTransition.transitions[].triggeredByUser

Boolean

Indicates whether the transition is executed by the user or by the system.

statusTransition.transitions[].available

Boolean

Indicates if the transition can be executed at the moment.

statusTransition.transitions[].note

String

Additional explanation about the availability to execute the transition.

statusTransition.transitions[].nextStatus

String

Next status that the plan will have if the transition is executed.

statusTransition.actionToExecute

Null

Name of the transition (action) to execute.

crisprAttempt

Object

Information about the Crispr attempt.

crisprAttempt.miDate

String

Micro-injection date.

crisprAttempt.experimental

Boolean

Whether the attempt is experimental or not.

crisprAttempt.comment

String

Crispt attempt comment.

crisprAttempt.mutagenesisExternalRef

String

Mutagenesis external reference.

crisprAttempt.imitsMiAttemptId

Number

iMits mi_attempt identifier (present if the attempt was transferred from iMits)

crisprAttempt.attemptExternalRef

String

External reference for the attempt.

crisprAttempt.totalEmbryosInjected

Number

Total embryos injected.

crisprAttempt.totalEmbryosSurvived

Number

Total embryos survived.

crisprAttempt.embryo2Cell

String

Number of embryos at the two cell stage.

crisprAttempt.strainInjectedName

String

Name of the strain injected.

crisprAttempt.embryoTransferDay

String

Embryo transfer day.

crisprAttempt.totalTransferred

Number

Total transferred

crisprAttempt.nucleases

Array

Information about the nucleases used in the attempt

crisprAttempt.nucleases[].id

Number

Id of the record in the system.

crisprAttempt.nucleases[].typeName

String

Name of the type of nuclease.

crisprAttempt.nucleases[].concentration

Number

Concentration of the nuclease.

crisprAttempt.nucleases[].className

String

Name of the class of nuclease. [protein or mRNA].

crisprAttempt.guides

Array

Information about the guides used in the attempt

crisprAttempt.guides[].id

Number

Id of the record in the system.

crisprAttempt.guides[].chr

String

Chromosome in the guide.

crisprAttempt.guides[].start

Number

Start

crisprAttempt.guides[].stop

Number

Stop.

crisprAttempt.guides[].grnaConcentration

Number

gRNA concentration in the guide.

crisprAttempt.guides[].sequence

String

sequence in the guide.

crisprAttempt.guides[].truncatedGuide

Boolean

Whether or not the guide is truncated.

crisprAttempt.guides[].strand

String

Strand of the guide.

crisprAttempt.guides[].genomeBuild

String

Genome build.

crisprAttempt.guides[].pam

String

PAM

crisprAttempt.guides[].guideSequence

String

Guide sequence

crisprAttempt.guides[].reversed

Boolean

Whether or not the sequence was reversed

crisprAttempt.guides[].sangerService

Boolean

Whether or not the sequence come from the sanger wge service

crisprAttempt.guides[].formatName

String

Format of the guide. For example: sgRNA.

crisprAttempt.guides[].sourceName

String

Source of the guide. For example: in-house.

crisprAttempt.guides[].gid

String

Guide Id that out generated

crisprAttempt.mutagenesisDonors

Array

Information about the mutagenesis donors.

crisprAttempt.mutagenesisDonors[].id

Number

Id of the record in the system.

crisprAttempt.mutagenesisDonors[].concentration

Number

Mutagenesis donor’s concentration.

crisprAttempt.mutagenesisDonors[].vectorName

String

Vector’s name.

crisprAttempt.mutagenesisDonors[].oligoSequenceFasta

String

Oligo sequence as FASTA format.

crisprAttempt.mutagenesisDonors[].preparationTypeName

String

Preparation type.

crisprAttempt.reagents

Array

Information about the reagents.

crisprAttempt.reagents[].id

Number

Id of the record in the system.

crisprAttempt.reagents[].reagentName

String

Reagent’s name.

crisprAttempt.reagents[].reagentDescription

String

Reagent’s description.

crisprAttempt.reagents[].concentration

Number

Reagent’s concentration.

crisprAttempt.genotypePrimers

Array

Information about the genotype primers.

crisprAttempt.genotypePrimers[].id

Number

Id of the record in the system.

crisprAttempt.genotypePrimers[].name

String

Genotype primer’s name.

crisprAttempt.genotypePrimers[].genomicStartCoordinate

Number

Genomic start coordinate.

crisprAttempt.genotypePrimers[].genomicEndCoordinate

Number

Genomic end coordinate.

crisprAttempt.genotypePrimers[].sequence

String

Genotype primer sequence.

crisprAttempt.assay

Object

Information about the assay.

crisprAttempt.assay.id

Number

Id of the record in the system.

crisprAttempt.assay.typeName

String

Assay type.

crisprAttempt.assay.numFounderPups

Number

Number of founder pups.

crisprAttempt.assay.numFounderSelectedForBreeding

Number

Number of founder selected for breeding.

crisprAttempt.assay.founderNumAssays

Number

Number of founder assays.

crisprAttempt.assay.numDeletionG0Mutants

Number

Number of deletion G0 mutants.

crisprAttempt.assay.numG0WhereMutationDetected

Number

Number of G0 where mutations where detected.

crisprAttempt.assay.numHdrG0Mutants

Number

Number of HDR G0 mutants.

crisprAttempt.assay.numHdrG0MutantsAllDonorsInserted

Number

Number of HDR G0 mutants with all donors inserted.

crisprAttempt.assay.numHdrG0MutantsSubsetDonorsInserted

Number

Number of HDR G0 mutants with a subset of donors inserted.

crisprAttempt.assay.numHrG0Mutants

Number

Number of HR G0 mutants.

crisprAttempt.assay.numNhejG0Mutants

Number

Number of NHEJ G0 mutants.

6.1.2. ES Cell plan.

Path Type Description

pin

String

Public identifier for the plan.

tpn

String

Public identifier for the project.

typeName

String

Plan type.

attemptTypeName

String

Attempt type.

comment

Null

Comment for the plan

statusName

String

Current status of the plan.

statusDates[]

Array

Stamps of the statuses the plan has gone through.

statusDates[].statusName

String

Status that the plan had on a specific date.

statusDates[].date

String

Date of the status change.

summaryStatusName

String

A status summarising the global status based on the statuses of the children of the plan.

_links.self.href

String

Link to the plan.

_links.project.href

String

Link to the project.

summaryStatusDates[]

Array

Stamps of the statuses summaries the plan has gone through.

summaryStatusDates[].statusName

String

Summary status that the plan had on a specific date.

summaryStatusDates[].date

String

Date of the summary status change.

funderNames

Array

Funders for the plan.

workUnitName

String

Work unit for the plan.

workGroupName

String

Work group for the plan.

statusTransition

Object

Information about the current state in the state machine for the plan.

statusTransition.currentStatus

String

Current status in the plan

statusTransition.transitions[]

Array

Transitions in the state machine given the current state.

statusTransition.transitions[].action

String

Action or transition’s name.

statusTransition.transitions[].description

String

Transition’s description.

statusTransition.transitions[].triggeredByUser

Boolean

Indicates whether the transition is executed by the user or by the system.

statusTransition.transitions[].available

Boolean

Indicates if the transition can be executed at the moment.

statusTransition.transitions[].note

String

Additional explanation about the availability to execute the transition.

statusTransition.transitions[].nextStatus

String

Next status that the plan will have if the transition is executed.

statusTransition.actionToExecute

Null

Name of the transition (action) to execute.

esCellAttempt

Object

ES cell attempt details.

esCellAttempt.esCellName

String

The ES Cell used in the attempt.

esCellAttempt.imitsMiAttemptId

Number

iMits mi_attempt identifier, (present if the attempt was transferred from iMits).

esCellAttempt.miDate

String

The date when the micro-injection was performed.

esCellAttempt.attemptExternalRef

String

External reference used to track the ES cell attempt.

esCellAttempt.experimental

Boolean

A flag indicating if the attempt is experimental.

esCellAttempt.comment

String

A comment about the ES cell attempt.

esCellAttempt.blastStrainName

String

Name of the blastocyst strain.

esCellAttempt.totalBlastsInjected

Number

Number of blastocysts injected.

esCellAttempt.totalTransferred

Number

Number of blastocysts transferred.

esCellAttempt.numberSurrogatesReceiving

Number

Number of surrogate mothers recieving blastocysts.

esCellAttempt.totalPupsBorn

Number

Number of pups born.

esCellAttempt.totalFemaleChimeras

Number

Total number of female chimeras.

esCellAttempt.totalMaleChimeras

Number

Total number of male chimeras.

esCellAttempt.totalChimeras

Number

Total number of chimeras.

esCellAttempt.numberOfMalesWith0To39PercentChimerism

Number

Number of male offspring with 0-39 % chimerism.

esCellAttempt.numberOfMalesWith40To79PercentChimerism

Number

Number of male offspring with 40-79 % chimerism.

esCellAttempt.numberOfMalesWith80To99PercentChimerism

Number

Number of male offspring with 80-99 % chimerism.

esCellAttempt.numberOfMalesWith100PercentChimerism

Number

Number of male offspring with 100 % chimerism.

esCellAttempt.testCrossStrainName

String

Name of the strain used for the test cross.

esCellAttempt.dateChimerasMated

String

The date when the chimeras were mated.

esCellAttempt.numberOfChimeraMatingsAttempted

Number

Number of matings set up with chimeras.

esCellAttempt.numberOfChimeraMatingsSuccessful

Number

Number of successful chimera matings.

esCellAttempt.numberOfChimerasWithGltFromCct

Number

Number of chimeras with germ line transmission assessed by coat-colour type.

esCellAttempt.numberOfChimerasWithGltFromGenotyping

Number

Number of chimeras with germ line transmission assessed by genotyping.

esCellAttempt.numberOfChimerasWith0To9PercentGlt

Number

Number of chimeras with 0-9 % germ line transmission.

esCellAttempt.numberOfChimerasWith10To49PercentGlt

Number

Number of chimeras with 10-49 % germ line transmission.

esCellAttempt.numberOfChimerasWith50To99PercentGlt

Number

Number of chimeras with 50-99 % germ line transmission.

esCellAttempt.numberOfChimerasWith100PercentGlt

Number

Number of chimeras with 100 % germ line transmission.

esCellAttempt.totalF1MiceFromMatings

Number

Total number of F1 offspring from matings.

esCellAttempt.numberOfCctOffspring

Number

esCellAttempt.cassetteTransmissionVerified

String

The date when cassette transmission was confirmed.

esCellAttempt.numberOfHetOffspring

Number

Number of heterozygous offspring.

esCellAttempt.numberOfLiveGltOffspring

Number

Number of live germ line transmission offspring.

6.1.3. ES Cell Allele Modification plan.

Path Type Description

pin

String

Public identifier for the plan.

tpn

String

Public identifier for the project.

typeName

String

Plan type.

attemptTypeName

String

Attempt type.

comment

Null

Comment for the plan

statusName

String

Current status of the plan.

statusDates[]

Array

Stamps of the statuses the plan has gone through.

statusDates[].statusName

String

Status that the plan had on a specific date.

statusDates[].date

String

Date of the status change.

summaryStatusName

String

A status summarising the global status based on the statuses of the children of the plan.

_links.self.href

String

Link to the plan.

_links.project.href

String

Link to the project.

summaryStatusDates[]

Array

Stamps of the statuses summaries the plan has gone through.

summaryStatusDates[].statusName

String

Summary status that the plan had on a specific date.

summaryStatusDates[].date

String

Date of the summary status change.

funderNames

Array

Funders for the plan.

workUnitName

String

Work unit for the plan.

workGroupName

String

Work group for the plan.

statusTransition

Object

Information about the current state in the state machine for the plan.

statusTransition.currentStatus

String

Current status in the plan

statusTransition.transitions[]

Array

Transitions in the state machine given the current state.

statusTransition.transitions[].action

String

Action or transition’s name.

statusTransition.transitions[].description

String

Transition’s description.

statusTransition.transitions[].triggeredByUser

Boolean

Indicates whether the transition is executed by the user or by the system.

statusTransition.transitions[].available

Boolean

Indicates if the transition can be executed at the moment.

statusTransition.transitions[].note

String

Additional explanation about the availability to execute the transition.

statusTransition.transitions[].nextStatus

String

Next status that the plan will have if the transition is executed.

statusTransition.actionToExecute

Null

Name of the transition (action) to execute.

esCellAlleleModificationStartingPoint

Object

Outcome information

esCellAlleleModificationStartingPoint._links

Object

esCellAlleleModificationStartingPoint._links.outcome

Object

esCellAlleleModificationStartingPoint._links.outcome.href

String

Outcome link

esCellAlleleModificationStartingPoint._links.productionPlan

Object

esCellAlleleModificationStartingPoint._links.productionPlan.href

String

Production plan link

esCellAlleleModificationStartingPoint.outcomeTpo

String

Public identifier for the outcome.

esCellAlleleModificationStartingPoint.productionPlanPin

String

Public identifier for the outcome production plan.

esCellAlleleModificationAttempt

Object

ES cell allele modification attempt details.

esCellAlleleModificationAttempt.modificationExternalRef

String

External reference used to track the modification. For data exported from iMits the mouse allele modification colony name has been recorded as the modification external reference.

esCellAlleleModificationAttempt.numberOfCreMatingsSuccessful

Number

records the number of successful Cre matings.

esCellAlleleModificationAttempt.tatCre

Boolean

Indicates tat Cre used for modification rather than a deleter strain.

esCellAlleleModificationAttempt.deleterStrainName

String

ES cell allele modification attempt deleter strain

esCellAlleleModificationAttempt.imitsMouseAlleleModId

Number

iMits mouse_allele_mod identifier, (present if the mouse_allele_mod was transferred from iMits)

esCellAlleleModificationAttempt.imitsTargRepAlleleId

Number

iMits TargRep Allele identifier, (present if the mouse_allele_mod was transferred from iMits)

6.1.4. Phenotyping plan.

Path Type Description

pin

String

Public identifier for the plan.

tpn

String

Public identifier for the project.

typeName

String

Plan type.

attemptTypeName

String

Attempt type.

comment

Null

Comment for the plan

statusName

String

Current status of the plan.

statusDates[]

Array

Stamps of the statuses the plan has gone through.

statusDates[].statusName

String

Status that the plan had on a specific date.

statusDates[].date

String

Date of the status change.

summaryStatusName

String

A status summarising the global status based on the statuses of the children of the plan.

_links.self.href

String

Link to the plan.

_links.project.href

String

Link to the project.

summaryStatusDates[]

Array

Stamps of the statuses summaries the plan has gone through.

summaryStatusDates[].statusName

String

Summary status that the plan had on a specific date.

summaryStatusDates[].date

String

Date of the summary status change.

funderNames

Array

Funders for the plan.

workUnitName

String

Work unit for the plan.

workGroupName

String

Work group for the plan.

statusTransition

Object

Information about the current state in the state machine for the plan.

statusTransition.currentStatus

String

Current status in the plan

statusTransition.transitions[]

Array

Transitions in the state machine given the current state.

statusTransition.transitions[].action

String

Action or transition’s name.

statusTransition.transitions[].description

String

Transition’s description.

statusTransition.transitions[].triggeredByUser

Boolean

Indicates whether the transition is executed by the user or by the system.

statusTransition.transitions[].available

Boolean

Indicates if the transition can be executed at the moment.

statusTransition.transitions[].note

String

Additional explanation about the availability to execute the transition.

statusTransition.transitions[].nextStatus

String

Next status that the plan will have if the transition is executed.

statusTransition.actionToExecute

Null

Name of the transition (action) to execute.

phenotypingStartingPoint

Object

Outcome information

phenotypingStartingPoint._links

Object

phenotypingStartingPoint._links.outcome

Object

phenotypingStartingPoint._links.outcome.href

String

Outcome link

phenotypingStartingPoint._links.productionPlan

Object

phenotypingStartingPoint._links.productionPlan.href

String

Production plan link

phenotypingStartingPoint.outcomeTpo

String

Public identifier for the outcome.

phenotypingStartingPoint.productionPlanPin

String

Public identifier for the outcome production plan.

phenotypingAttemptResponse

Object

Phenotyping attempt details.

phenotypingAttemptResponse.phenotypingExternalRef

String

Phenotyping colony name or specimen group name

phenotypingAttemptResponse.phenotypingBackgroundStrainName

String

Phenotyping attempt background strain.

phenotypingAttemptResponse.doNotCountTowardsCompleteness

Boolean

phenotypingAttemptResponse.cohortProductionWorkUnitName

String

phenotypingAttemptResponse.imitsPhenotypeAttemptId

Number

iMits phenotype_attempt identifier, (present if the phenotype_attempt was transferred from iMits)

phenotypingAttemptResponse.imitsPhenotypingProductionId

Number

iMits phenotyping_production identifier, (present if the phenotyping_production was transferred from iMits)

phenotypingAttemptResponse.imitsParentColonyId

Number

iMits parent_colony identifier, (present if the phenotype_attempt was transferred from iMits)

6.2. Filters

When you use the endpoint to get all the plans, you can use filters in a similar way to project filters, see Filters, to select the information you require.

This is the list of filters you can use:

6.2.1. Common filters

Table 3. Common filters for plans
Filter name Description

pin

PIN(s) to be used as a filter. Eg: PIN:0000000014.

tpn

TPN(s) to be used as a filter. Eg: TPN:000000001.

workUnitName

Name of the work unit associated with the plan.

workGroup

Name of the work group associated with the plan.

summaryStatusName

Name of the summary status in the plan.

typeName

Name of the type of the plan. Possible values are:

  • production

  • phenotyping

6.2.2. Specific filters for production plan

Table 4. Filters for production plans

attemptTypeName

Attempt type. Possible values are:

  • crispr

  • haplo-essential crispr

  • es cell

  • es cell allele modification

  • breeding

imitsMiAttemptId

iMits mi attempt id.

6.2.3. Specific filters for phenotyping plan

Table 5. Filters for phenotyping plans

attemptTypeName

Attempt type. Possible values are:

  • adult and embryo phenotyping

  • haplo-essential phenotyping

imitsPhenotypeAttemptId

iMits phenotyping attempt id.

phenotypingExternalRef

Phentoyping External Reference (colony name or specimen group name).

doNotCountTowardsCompleteness

Do not count towards completeness boolean, true or false.

6.3. GET

6.3.1. Get a specific plan

This endpoint shows a plan in the system.

Example Request

Curl:

$ curl 'http://localhost:8080/api/plans/PIN:0000000001' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6InpSNnhKMlFHZEhOSjFJMUZqb2x2R2ciLCJpYXQiOjE3MDg0NDE2MzcsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQzN30.R6aSUYwZlYMYUdgJlldC3LedH3ZHswgSWFsEBErm4EC_viiYgDjPunEOrLDVXPOJns6tu8TjMie3k0gy9lSWvZF2mbzSkeGadZoxOOh_i93cfPy_3IMoHZPy8R1Pv_-0rTyxXPUZk5gQo03CTxCxoRmhP-pw53ziGeRYEMCryRt3TeNygx3sWLSTSGZ_Xwmsz5DltrHmH5xtVxYQThsKb6Tif7ZBkJkCz5i8hg1ew3hYacECQn0b3piPhKuxzQmrix2JVuKQ-xay4bqqMJaCw8RAVQJWoPJ-AgLOomMAIM_Pc2dynLacFEA6MODcx0GVIfG3TqNo3ZFdqnESbrhjdw'
Example Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/hal+json
Content-Length: 3670

{
  "pin" : "PIN:0000000001",
  "tpn" : "TPN:000000001",
  "attemptTypeName" : "crispr",
  "funderNames" : [ "KOMP" ],
  "workUnitName" : "BCM",
  "workGroupName" : "BaSH",
  "comment" : null,
  "crisprAttempt" : {
    "miDate" : "2019-02-26",
    "experimental" : false,
    "comment" : "crispr plan comment",
    "mutagenesisExternalRef" : "MF-26326",
    "imitsMiAttemptId" : 20043,
    "attemptExternalRef" : "Attempt external ref",
    "embryoTransferDay" : "Same Day",
    "totalTransferred" : 72,
    "nucleases" : [ {
      "id" : 1,
      "typeName" : "Cas9",
      "concentration" : 250.0,
      "className" : "protein"
    } ],
    "guides" : [ {
      "id" : 1,
      "sequence" : "CTTCACGTACCAAGGAGGGGTGG",
      "guideSequence" : "CTTCACGTACCAAGGAGGGG",
      "pam" : "TGG",
      "chr" : "X",
      "start" : 45334016,
      "stop" : 45334038,
      "strand" : "+",
      "genomeBuild" : "GRCm39",
      "grnaConcentration" : 300.0,
      "truncatedGuide" : true,
      "reversed" : false,
      "sangerService" : false,
      "gid" : "GID:00000000001",
      "formatName" : "sgRNA",
      "sourceName" : "commercial"
    } ],
    "mutagenesisDonors" : [ {
      "id" : 1,
      "concentration" : 5.0,
      "vectorName" : "pUC18_Ikzf2_conditional",
      "oligoSequenceFasta" : "ATAATTGGCAGCCTGATTAGAAGAATGCCCATCTTGTCTAGTGACACATTAGAACAATGAGTAATTGCTCGATGCGGATCCATAACTTCGTATAGCATACATTATACGAAGTTATTCTCTGGGATTAAGAAAAAACTAACATATGAAACAGAAGCCCAGACATCTAAAACCACAAAGA",
      "preparationTypeName" : "Circular"
    } ],
    "reagents" : [ {
      "id" : 1,
      "reagentName" : "Ligase IV",
      "reagentDescription" : "NHEJ Inhibitor",
      "concentration" : 334.0
    } ],
    "genotypePrimers" : [ {
      "id" : 1,
      "genomicStartCoordinate" : 1,
      "genomicEndCoordinate" : 200,
      "name" : "Gpr68wtR",
      "sequence" : "GTAGAGGGACAGGCAGTTGG"
    } ],
    "totalEmbryosInjected" : 72,
    "totalEmbryosSurvived" : 70,
    "embryo2Cell" : "20043",
    "assay" : {
      "id" : 1,
      "typeName" : "T7EN1",
      "numFounderPups" : 26,
      "numFounderSelectedForBreeding" : 1,
      "founderNumAssays" : 26,
      "numDeletionG0Mutants" : 1,
      "numG0WhereMutationDetected" : 1,
      "numHdrG0Mutants" : 1,
      "numHdrG0MutantsAllDonorsInserted" : 0,
      "numHdrG0MutantsSubsetDonorsInserted" : 0,
      "numHrG0Mutants" : 0,
      "numNhejG0Mutants" : 0
    },
    "strainInjectedName" : "C57BL/6NJ"
  },
  "typeName" : "production",
  "statusName" : "Founder Obtained",
  "summaryStatusName" : "Genotype Confirmed",
  "_links" : {
    "self" : {
      "href" : "http://localhost:8080/api/plans/PIN:0000000001"
    },
    "project" : {
      "href" : "http://localhost:8080/api/projects/TPN:000000001"
    }
  },
  "statusDates" : [ {
    "statusName" : "Plan Created",
    "date" : "2018-01-15T00:00:00.706639"
  }, {
    "statusName" : "Attempt In Progress",
    "date" : "2018-01-16T00:00:00.706639"
  }, {
    "statusName" : "Founder Obtained",
    "date" : "2018-02-22T20:18:00.706639"
  }, {
    "statusName" : "Embryos Obtained",
    "date" : "2018-04-04T14:32:00.706639"
  } ],
  "summaryStatusDates" : [ {
    "statusName" : "Genotype Confirmed",
    "date" : "2019-08-06T20:09:51.706639"
  } ],
  "statusTransition" : {
    "currentStatus" : "Founder Obtained",
    "transitions" : [ {
      "action" : "abortWhenFounderObtained",
      "description" : "Abort the plan after a founder obtained",
      "triggeredByUser" : true,
      "available" : false,
      "note" : "The plan has colonies that are not aborted. Please abort them first",
      "nextStatus" : "Attempt Aborted"
    } ],
    "actionToExecute" : null
  }
}

6.3.2. Get all Plans

This endpoint shows all the plans the user has permission to see.

Example Request

Curl:

$ curl 'http://localhost:8080/api/plans' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6ImNwUFVKUXp3WTlFZWpUaHJkcmE2cnciLCJpYXQiOjE3MDg0NDE2MzQsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQzNH0.LHoaGipP7JlkmNmCsz6fBKqLJCEvZLO9w0prjc6TkD1rNnO3LLFa-fqGmf2Zig6ChupFnpsLYzdi1ONSdEaB8HYCtz6Su1E_tl-ny0Y2R6p1eDBFZHNo6qpOlDahj_FojELIP6rMT5l8ZlQxw4zXJK2XGzDFz14fSGm8TOJUYYH13oAruGEZ_BXs4r4LT0u96rzS_d6htNLFEIdsNfrTiJjfw5ihi4mqCswgce2eX1ZruGJbIvU54fx2o8vwssp2VYTDTYIvwDlNZ2wE2_5Srxv7-B7hegC6USw6xh0ZiJY0hB3OuoWkiHCqHlpPgxezOJz1vCIVbQBW0OlI31f8vg'
Example Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Link:
Content-Type: application/hal+json
Content-Length: 21906

{
  "_embedded" : {
    "plans" : [ {
      "pin" : "PIN:0000000001",
      "tpn" : "TPN:000000001",
      "attemptTypeName" : "crispr",
      "funderNames" : [ "KOMP" ],
      "workUnitName" : "BCM",
      "workGroupName" : "BaSH",
      "comment" : null,
      "crisprAttempt" : {
        "miDate" : "2019-02-26",
        "experimental" : false,
        "comment" : "crispr plan comment",
        "mutagenesisExternalRef" : "MF-26326",
        "imitsMiAttemptId" : 20043,
        "attemptExternalRef" : "Attempt external ref",
        "embryoTransferDay" : "Same Day",
        "totalTransferred" : 72,
        "nucleases" : [ {
          "id" : 1,
          "typeName" : "Cas9",
          "concentration" : 250.0,
          "className" : "protein"
        } ],
        "guides" : [ {
          "id" : 1,
          "sequence" : "CTTCACGTACCAAGGAGGGGTGG",
          "guideSequence" : "CTTCACGTACCAAGGAGGGG",
          "pam" : "TGG",
          "chr" : "X",
          "start" : 45334016,
          "stop" : 45334038,
          "strand" : "+",
          "genomeBuild" : "GRCm39",
          "grnaConcentration" : 300.0,
          "truncatedGuide" : true,
          "reversed" : false,
          "sangerService" : false,
          "gid" : "GID:00000000001",
          "formatName" : "sgRNA",
          "sourceName" : "commercial"
        } ],
        "mutagenesisDonors" : [ {
          "id" : 1,
          "concentration" : 5.0,
          "vectorName" : "pUC18_Ikzf2_conditional",
          "oligoSequenceFasta" : "ATAATTGGCAGCCTGATTAGAAGAATGCCCATCTTGTCTAGTGACACATTAGAACAATGAGTAATTGCTCGATGCGGATCCATAACTTCGTATAGCATACATTATACGAAGTTATTCTCTGGGATTAAGAAAAAACTAACATATGAAACAGAAGCCCAGACATCTAAAACCACAAAGA",
          "preparationTypeName" : "Circular"
        } ],
        "reagents" : [ {
          "id" : 1,
          "reagentName" : "Ligase IV",
          "reagentDescription" : "NHEJ Inhibitor",
          "concentration" : 334.0
        } ],
        "genotypePrimers" : [ {
          "id" : 1,
          "genomicStartCoordinate" : 1,
          "genomicEndCoordinate" : 200,
          "name" : "Gpr68wtR",
          "sequence" : "GTAGAGGGACAGGCAGTTGG"
        } ],
        "totalEmbryosInjected" : 72,
        "totalEmbryosSurvived" : 70,
        "embryo2Cell" : "20043",
        "assay" : {
          "id" : 1,
          "typeName" : "T7EN1",
          "numFounderPups" : 26,
          "numFounderSelectedForBreeding" : 1,
          "founderNumAssays" : 26,
          "numDeletionG0Mutants" : 1,
          "numG0WhereMutationDetected" : 1,
          "numHdrG0Mutants" : 1,
          "numHdrG0MutantsAllDonorsInserted" : 0,
          "numHdrG0MutantsSubsetDonorsInserted" : 0,
          "numHrG0Mutants" : 0,
          "numNhejG0Mutants" : 0
        },
        "strainInjectedName" : "C57BL/6NJ"
      },
      "typeName" : "production",
      "statusName" : "Founder Obtained",
      "summaryStatusName" : "Genotype Confirmed",
      "_links" : {
        "self" : {
          "href" : "http://localhost:8080/api/plans/PIN:0000000001"
        },
        "project" : {
          "href" : "http://localhost:8080/api/projects/TPN:000000001"
        }
      },
      "statusDates" : [ {
        "statusName" : "Plan Created",
        "date" : "2018-01-15T00:00:00.706639"
      }, {
        "statusName" : "Attempt In Progress",
        "date" : "2018-01-16T00:00:00.706639"
      }, {
        "statusName" : "Founder Obtained",
        "date" : "2018-02-22T20:18:00.706639"
      }, {
        "statusName" : "Embryos Obtained",
        "date" : "2018-04-04T14:32:00.706639"
      } ],
      "summaryStatusDates" : [ {
        "statusName" : "Genotype Confirmed",
        "date" : "2019-08-06T20:09:51.706639"
      } ],
      "statusTransition" : {
        "currentStatus" : "Founder Obtained",
        "transitions" : [ {
          "action" : "abortWhenFounderObtained",
          "description" : "Abort the plan after a founder obtained",
          "triggeredByUser" : true,
          "available" : false,
          "note" : "The plan has colonies that are not aborted. Please abort them first",
          "nextStatus" : "Attempt Aborted"
        } ],
        "actionToExecute" : null
      }
    }, {
      "pin" : "PIN:0000000222",
      "tpn" : "TPN:000000222",
      "attemptTypeName" : "crispr",
      "funderNames" : [ "KOMP2" ],
      "workUnitName" : "UCD",
      "workGroupName" : "DTCC",
      "comment" : null,
      "crisprAttempt" : {
        "miDate" : "2018-03-26",
        "experimental" : false,
        "comment" : "crispr plan comment",
        "mutagenesisExternalRef" : "MF-26328",
        "imitsMiAttemptId" : 20044,
        "attemptExternalRef" : "Attempt external ref 2",
        "embryoTransferDay" : "Same Day",
        "totalTransferred" : 72,
        "nucleases" : [ {
          "id" : 2,
          "typeName" : "Cas9",
          "concentration" : 250.0,
          "className" : "protein"
        } ],
        "guides" : [ {
          "id" : 2,
          "sequence" : "CCATGATCTAATCTGTGGTTAAA",
          "guideSequence" : "CCATGATCTAATCTGTGGTTAAA",
          "pam" : "AAA",
          "chr" : "14",
          "start" : 57150316,
          "stop" : 57150338,
          "strand" : "+",
          "genomeBuild" : "GRCm39",
          "grnaConcentration" : 300.0,
          "truncatedGuide" : false,
          "reversed" : false,
          "sangerService" : false,
          "gid" : "GID:00000000002",
          "formatName" : "cr-tracrRNA",
          "sourceName" : "in-house"
        } ],
        "mutagenesisDonors" : [ ],
        "reagents" : [ ],
        "genotypePrimers" : [ {
          "id" : 2,
          "genomicStartCoordinate" : 1,
          "genomicEndCoordinate" : 200,
          "name" : "Gpr68wtR",
          "sequence" : "GTAGAGGGACAGGCAGTTGG"
        } ],
        "totalEmbryosInjected" : 70,
        "totalEmbryosSurvived" : 64,
        "embryo2Cell" : "20044",
        "assay" : {
          "id" : 2,
          "typeName" : "LOA",
          "numFounderPups" : 4,
          "numFounderSelectedForBreeding" : 1,
          "founderNumAssays" : 4,
          "numDeletionG0Mutants" : 1,
          "numG0WhereMutationDetected" : 1,
          "numHdrG0Mutants" : null,
          "numHdrG0MutantsAllDonorsInserted" : null,
          "numHdrG0MutantsSubsetDonorsInserted" : null,
          "numHrG0Mutants" : null,
          "numNhejG0Mutants" : null
        },
        "strainInjectedName" : "C57BL/6NJ"
      },
      "typeName" : "production",
      "statusName" : "Founder Obtained",
      "summaryStatusName" : "Founder Obtained",
      "_links" : {
        "self" : {
          "href" : "http://localhost:8080/api/plans/PIN:0000000222"
        },
        "project" : {
          "href" : "http://localhost:8080/api/projects/TPN:000000222"
        }
      },
      "statusDates" : [ {
        "statusName" : "Plan Created",
        "date" : "2018-06-25T00:00:00"
      }, {
        "statusName" : "Attempt In Progress",
        "date" : "2018-06-25T00:00:00"
      }, {
        "statusName" : "Founder Obtained",
        "date" : "2020-01-10T20:25:12.783017"
      }, {
        "statusName" : "Embryos Obtained",
        "date" : "2020-01-10T20:25:12.783017"
      } ],
      "summaryStatusDates" : [ {
        "statusName" : "Founder Obtained",
        "date" : "2020-01-10T20:25:12.783017"
      } ],
      "statusTransition" : {
        "currentStatus" : "Founder Obtained",
        "transitions" : [ {
          "action" : "abortWhenFounderObtained",
          "description" : "Abort the plan after a founder obtained",
          "triggeredByUser" : true,
          "available" : true,
          "note" : null,
          "nextStatus" : "Attempt Aborted"
        } ],
        "actionToExecute" : null
      }
    }, {
      "pin" : "PIN:0000000003",
      "tpn" : "TPN:000000001",
      "attemptTypeName" : "adult and embryo phenotyping",
      "funderNames" : [ "KOMP" ],
      "workUnitName" : "BCM",
      "workGroupName" : "BaSH",
      "comment" : null,
      "phenotypingStartingPoint" : {
        "_links" : {
          "outcome" : {
            "href" : "http://localhost:8080/api/plans/PIN:0000000001/outcomes/TPO:000000000001"
          },
          "productionPlan" : {
            "href" : "http://localhost:8080/api/plans/PIN:0000000001"
          }
        },
        "outcomeTpo" : "TPO:000000000001",
        "productionPlanPin" : "PIN:0000000001"
      },
      "phenotypingAttemptResponse" : {
        "doNotCountTowardsCompleteness" : false,
        "phenotypingExternalRef" : "CR10129",
        "imitsPhenotypeAttemptId" : 9040,
        "imitsPhenotypingProductionId" : 9243,
        "imitsParentColonyId" : 20829,
        "phenotypingBackgroundStrainName" : "C57BL/6NJ",
        "cohortProductionWorkUnitName" : "BCM"
      },
      "typeName" : "phenotyping",
      "statusName" : "Plan Created",
      "summaryStatusName" : "Plan Created",
      "_links" : {
        "self" : {
          "href" : "http://localhost:8080/api/plans/PIN:0000000003"
        },
        "project" : {
          "href" : "http://localhost:8080/api/projects/TPN:000000001"
        }
      },
      "statusDates" : [ {
        "statusName" : "Plan Created",
        "date" : "2020-04-14T12:46:24.706639"
      } ],
      "summaryStatusDates" : [ {
        "statusName" : "Plan Created",
        "date" : "2020-04-14T12:46:24.706639"
      } ],
      "statusTransition" : {
        "currentStatus" : "Plan Created",
        "transitions" : [ {
          "action" : "abandonWhenCreated",
          "description" : "Abandon a phenotyping plan that has no associated phenotyping stage information",
          "triggeredByUser" : true,
          "available" : false,
          "note" : "The plan already has phenotyping stages. Please abort the plan.",
          "nextStatus" : "Plan Abandoned"
        }, {
          "action" : "abortPhenotypingPlan",
          "description" : "Abort a phenotyping plan that has associated aborted phenotyping stage information",
          "triggeredByUser" : true,
          "available" : true,
          "note" : null,
          "nextStatus" : "Phenotyping Plan Aborted"
        } ],
        "actionToExecute" : null
      }
    }, {
      "pin" : "PIN:0000000004",
      "tpn" : "TPN:000000001",
      "attemptTypeName" : "adult and embryo phenotyping",
      "funderNames" : [ ],
      "workUnitName" : "BCM",
      "workGroupName" : "BaSH",
      "comment" : null,
      "phenotypingStartingPoint" : {
        "_links" : {
          "outcome" : {
            "href" : "http://localhost:8080/api/plans/PIN:0000000001/outcomes/TPO:000000000002"
          },
          "productionPlan" : {
            "href" : "http://localhost:8080/api/plans/PIN:0000000001"
          }
        },
        "outcomeTpo" : "TPO:000000000002",
        "productionPlanPin" : "PIN:0000000001"
      },
      "phenotypingAttemptResponse" : {
        "doNotCountTowardsCompleteness" : false,
        "phenotypingExternalRef" : "JR34077",
        "phenotypingBackgroundStrainName" : "C57BL/6NJ",
        "cohortProductionWorkUnitName" : "BCM"
      },
      "typeName" : "phenotyping",
      "statusName" : "Plan Created",
      "summaryStatusName" : "Plan Created",
      "_links" : {
        "self" : {
          "href" : "http://localhost:8080/api/plans/PIN:0000000004"
        },
        "project" : {
          "href" : "http://localhost:8080/api/projects/TPN:000000001"
        }
      },
      "statusDates" : [ {
        "statusName" : "Plan Created",
        "date" : "2018-02-22T20:18:00.706639"
      } ],
      "summaryStatusDates" : [ {
        "statusName" : "Plan Created",
        "date" : "2020-04-14T12:46:24.706639"
      } ],
      "statusTransition" : {
        "currentStatus" : "Plan Created",
        "transitions" : [ {
          "action" : "abandonWhenCreated",
          "description" : "Abandon a phenotyping plan that has no associated phenotyping stage information",
          "triggeredByUser" : true,
          "available" : false,
          "note" : "The plan already has phenotyping stages. Please abort the plan.",
          "nextStatus" : "Plan Abandoned"
        }, {
          "action" : "abortPhenotypingPlan",
          "description" : "Abort a phenotyping plan that has associated aborted phenotyping stage information",
          "triggeredByUser" : true,
          "available" : true,
          "note" : null,
          "nextStatus" : "Phenotyping Plan Aborted"
        } ],
        "actionToExecute" : null
      }
    }, {
      "pin" : "PIN:0000000009",
      "tpn" : "TPN:000000003",
      "attemptTypeName" : "es cell allele modification",
      "funderNames" : [ "KOMP" ],
      "workUnitName" : "BCM",
      "workGroupName" : "BaSH",
      "comment" : null,
      "esCellAlleleModificationStartingPoint" : {
        "_links" : {
          "outcome" : {
            "href" : "http://localhost:8080/api/plans/PIN:0000000010/outcomes/TPO:000000000003"
          },
          "productionPlan" : {
            "href" : "http://localhost:8080/api/plans/PIN:0000000010"
          }
        },
        "outcomeTpo" : "TPO:000000000003",
        "productionPlanPin" : "PIN:0000000010"
      },
      "esCellAlleleModificationAttempt" : {
        "modificationExternalRef" : "GSF-EPD0045_1_B11-3-1",
        "numberOfCreMatingsSuccessful" : 1,
        "tatCre" : false,
        "deleterStrainName" : "BALB/cJ",
        "imitsMouseAlleleModId" : 1775,
        "imitsTargRepAlleleId" : 1878
      },
      "typeName" : "production",
      "statusName" : "Cre Excision Complete",
      "summaryStatusName" : "Cre Excision Complete",
      "_links" : {
        "self" : {
          "href" : "http://localhost:8080/api/plans/PIN:0000000009"
        },
        "project" : {
          "href" : "http://localhost:8080/api/projects/TPN:000000003"
        }
      },
      "statusDates" : [ {
        "statusName" : "Plan Created",
        "date" : "2012-11-06T12:01:00"
      }, {
        "statusName" : "Mouse Allele Modification Registered",
        "date" : "2012-11-06T12:08:00"
      }, {
        "statusName" : "Cre Excision Started",
        "date" : "2013-02-02T12:42:00"
      }, {
        "statusName" : "Cre Excision Complete",
        "date" : "2013-04-09T12:42:00"
      } ],
      "summaryStatusDates" : [ {
        "statusName" : "Plan Created",
        "date" : "2012-11-06T12:01:00"
      }, {
        "statusName" : "Mouse Allele Modification Registered",
        "date" : "2012-11-06T12:08:00"
      }, {
        "statusName" : "Cre Excision Started",
        "date" : "2013-02-02T12:42:00"
      }, {
        "statusName" : "Cre Excision Complete",
        "date" : "2013-04-09T12:42:00"
      } ],
      "statusTransition" : {
        "currentStatus" : "Cre Excision Complete",
        "transitions" : [ {
          "action" : "updateToMouseAlleleModificationGenotypeConfirmed",
          "description" : "Update to Mouse Allele Modification Genotype Confirmed.",
          "triggeredByUser" : false,
          "available" : false,
          "note" : "A genotyped confirmed colony needs to be associated with the plan.",
          "nextStatus" : "Mouse Allele Modification Genotype Confirmed"
        }, {
          "action" : "abortWhenCreExcisionComplete",
          "description" : "Abort an allele modification plan when Cre excision is complete",
          "triggeredByUser" : true,
          "available" : true,
          "note" : null,
          "nextStatus" : "Mouse Allele Modification Aborted"
        } ],
        "actionToExecute" : null
      }
    }, {
      "pin" : "PIN:0000000010",
      "tpn" : "TPN:000000003",
      "attemptTypeName" : "es cell",
      "funderNames" : [ "KOMP" ],
      "workUnitName" : "BCM",
      "workGroupName" : "BaSH",
      "comment" : null,
      "esCellAttempt" : {
        "miDate" : "2007-04-24",
        "experimental" : false,
        "comment" : "additional information",
        "blastStrainName" : "C57BL/6NJ",
        "totalBlastsInjected" : 44,
        "totalTransferred" : 44,
        "numberSurrogatesReceiving" : 0,
        "totalPupsBorn" : 25,
        "totalFemaleChimeras" : 5,
        "totalMaleChimeras" : 2,
        "totalChimeras" : 7,
        "numberOfMalesWith0To39PercentChimerism" : 1,
        "numberOfMalesWith40To79PercentChimerism" : 1,
        "numberOfMalesWith80To99PercentChimerism" : 0,
        "numberOfMalesWith100PercentChimerism" : 0,
        "testCrossStrainName" : "BALB/cJ",
        "dateChimerasMated" : "2007-06-18",
        "numberOfChimeraMatingsAttempted" : 6,
        "numberOfChimeraMatingsSuccessful" : 5,
        "numberOfChimerasWithGltFromCct" : 1,
        "numberOfChimerasWithGltFromGenotyping" : 1,
        "numberOfChimerasWith0To9PercentGlt" : 0,
        "numberOfChimerasWith10To49PercentGlt" : 1,
        "numberOfChimerasWith50To99PercentGlt" : 0,
        "numberOfChimerasWith100PercentGlt" : 0,
        "totalF1MiceFromMatings" : 52,
        "numberOfCctOffspring" : 3,
        "cassetteTransmissionVerified" : "2007-10-21",
        "numberOfHetOffspring" : 2,
        "numberOfLiveGltOffspring" : 0,
        "esCellName" : "EPD0045_1_A11",
        "imitsMiAttemptId" : 2030,
        "attemptExternalRef" : "MAKE"
      },
      "typeName" : "production",
      "statusName" : "Chimeras/Founder Obtained",
      "summaryStatusName" : "Genotype Confirmed",
      "_links" : {
        "self" : {
          "href" : "http://localhost:8080/api/plans/PIN:0000000010"
        },
        "project" : {
          "href" : "http://localhost:8080/api/projects/TPN:000000003"
        }
      },
      "statusDates" : [ {
        "statusName" : "Plan Created",
        "date" : "2007-04-24T00:00:00"
      }, {
        "statusName" : "Attempt In Progress",
        "date" : "2007-05-18T00:00:00"
      }, {
        "statusName" : "Chimeras/Founder Obtained",
        "date" : "2007-10-20T00:00:00"
      } ],
      "summaryStatusDates" : [ {
        "statusName" : "Chimeras/Founder Obtained",
        "date" : "2007-10-21T00:00:00"
      } ],
      "statusTransition" : {
        "currentStatus" : "Chimeras/Founder Obtained",
        "transitions" : [ {
          "action" : "abortWhenChimerasFounderObtained",
          "description" : "Abort the plan after a founder obtained",
          "triggeredByUser" : true,
          "available" : false,
          "note" : "The plan has colonies that are not aborted. Please abort them first",
          "nextStatus" : "Attempt Aborted"
        } ],
        "actionToExecute" : null
      }
    }, {
      "pin" : "PIN:0000000011",
      "tpn" : "TPN:000000004",
      "attemptTypeName" : "crispr allele modification",
      "funderNames" : [ "KOMP" ],
      "workUnitName" : "BCM",
      "workGroupName" : "BaSH",
      "comment" : null,
      "crisprAlleleModificationStartingPoint" : {
        "_links" : {
          "outcome" : {
            "href" : "http://localhost:8080/api/plans/PIN:0000000011/outcomes/TPO:000000000005"
          },
          "productionPlan" : {
            "href" : "http://localhost:8080/api/plans/PIN:0000000011"
          }
        },
        "outcomeTpo" : "TPO:000000000005",
        "productionPlanPin" : "PIN:0000000011"
      },
      "crisprAlleleModificationAttempt" : {
        "modificationExternalRef" : "GSF-EPD0045_1_B11-3-1",
        "numberOfCreMatingsSuccessful" : 1,
        "tatCre" : false,
        "deleterStrainName" : "BALB/cJ"
      },
      "typeName" : "production",
      "statusName" : "Cre Excision Complete",
      "summaryStatusName" : "Cre Excision Complete",
      "_links" : {
        "self" : {
          "href" : "http://localhost:8080/api/plans/PIN:0000000011"
        },
        "project" : {
          "href" : "http://localhost:8080/api/projects/TPN:000000004"
        }
      },
      "statusDates" : [ {
        "statusName" : "Plan Created",
        "date" : "2012-11-06T12:01:00"
      }, {
        "statusName" : "Mouse Allele Modification Registered",
        "date" : "2012-11-06T12:08:00"
      }, {
        "statusName" : "Cre Excision Started",
        "date" : "2013-02-02T12:42:00"
      }, {
        "statusName" : "Cre Excision Complete",
        "date" : "2013-04-09T12:42:00"
      } ],
      "summaryStatusDates" : [ {
        "statusName" : "Plan Created",
        "date" : "2012-11-06T12:01:00"
      }, {
        "statusName" : "Mouse Allele Modification Registered",
        "date" : "2012-11-06T12:08:00"
      }, {
        "statusName" : "Cre Excision Started",
        "date" : "2013-02-02T12:42:00"
      }, {
        "statusName" : "Cre Excision Complete",
        "date" : "2013-04-09T12:42:00"
      } ],
      "statusTransition" : {
        "currentStatus" : "Cre Excision Complete",
        "transitions" : [ {
          "action" : "updateToMouseAlleleModificationGenotypeConfirmed",
          "description" : "Update to Mouse Allele Modification Genotype Confirmed.",
          "triggeredByUser" : false,
          "available" : false,
          "note" : "A genotyped confirmed colony needs to be associated with the plan.",
          "nextStatus" : "Mouse Allele Modification Genotype Confirmed"
        }, {
          "action" : "abortWhenCreExcisionComplete",
          "description" : "Abort an allele modification plan when Cre excision is complete",
          "triggeredByUser" : true,
          "available" : true,
          "note" : null,
          "nextStatus" : "Mouse Allele Modification Aborted"
        } ],
        "actionToExecute" : null
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "http://localhost:8080/api/plans{?pin,tpn,workUnitName,workGroupName,statusName,summaryStatusName,typeName,attemptTypeName,imitsMiAttemptId,imitsPhenotypeAttemptId,phenotypingExternalRef,doNotCountTowardsCompleteness}",
      "templated" : true
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 7,
    "totalPages" : 1,
    "number" : 0
  }
}

6.3.3. Get filtered Plans

You can also add filters to the request to get more specific results.

Example Request

Curl:

$ curl 'http://localhost:8080/api/plans?statusName=Founder%20Obtained&attemptTypeName=crispr' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6InFhTVFMc0Y3RmYwZ0J1R2x1bExZRWciLCJpYXQiOjE3MDg0NDE2MjQsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQyNH0.b6de6QENuLJ56KUUDeRZon-u0KJ4sMVbVm6PnwZQ2A6OE3Ppk9BtwKZm2cNsEgfLncGphytYyC5cdXJpxOisHMFAFqGcNoOJzshlnAZ6qde-Qla98nIKswTTEmqoT8mGGtiJi5GY8O1wforen92cmSelPiSAJX7Sdvhp0O4T9Bgow3AbkZzsF4y25niK6Nks-h0lbgDg8VnoW_rLEZAgOU4gocy08m3Gd-Kg2d2b4zLiCHfDtVi5zD2dvmoOTjsR6hJGjTOiuTwIdRKwQMaj0MrQ9F0_NZ75UL6AEfWyRT07z0lknDK4CcHdG59gqCXuV55_1M_Ejr3C3HSnFH6nbg'
Example Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Link:
Content-Type: application/hal+json
Content-Length: 8176

{
  "_embedded" : {
    "plans" : [ {
      "pin" : "PIN:0000000001",
      "tpn" : "TPN:000000001",
      "attemptTypeName" : "crispr",
      "funderNames" : [ "KOMP" ],
      "workUnitName" : "BCM",
      "workGroupName" : "BaSH",
      "comment" : null,
      "crisprAttempt" : {
        "miDate" : "2019-02-26",
        "experimental" : false,
        "comment" : "crispr plan comment",
        "mutagenesisExternalRef" : "MF-26326",
        "imitsMiAttemptId" : 20043,
        "attemptExternalRef" : "Attempt external ref",
        "embryoTransferDay" : "Same Day",
        "totalTransferred" : 72,
        "nucleases" : [ {
          "id" : 1,
          "typeName" : "Cas9",
          "concentration" : 250.0,
          "className" : "protein"
        } ],
        "guides" : [ {
          "id" : 1,
          "sequence" : "CTTCACGTACCAAGGAGGGGTGG",
          "guideSequence" : "CTTCACGTACCAAGGAGGGG",
          "pam" : "TGG",
          "chr" : "X",
          "start" : 45334016,
          "stop" : 45334038,
          "strand" : "+",
          "genomeBuild" : "GRCm39",
          "grnaConcentration" : 300.0,
          "truncatedGuide" : true,
          "reversed" : false,
          "sangerService" : false,
          "gid" : "GID:00000000001",
          "formatName" : "sgRNA",
          "sourceName" : "commercial"
        } ],
        "mutagenesisDonors" : [ {
          "id" : 1,
          "concentration" : 5.0,
          "vectorName" : "pUC18_Ikzf2_conditional",
          "oligoSequenceFasta" : "ATAATTGGCAGCCTGATTAGAAGAATGCCCATCTTGTCTAGTGACACATTAGAACAATGAGTAATTGCTCGATGCGGATCCATAACTTCGTATAGCATACATTATACGAAGTTATTCTCTGGGATTAAGAAAAAACTAACATATGAAACAGAAGCCCAGACATCTAAAACCACAAAGA",
          "preparationTypeName" : "Circular"
        } ],
        "reagents" : [ {
          "id" : 1,
          "reagentName" : "Ligase IV",
          "reagentDescription" : "NHEJ Inhibitor",
          "concentration" : 334.0
        } ],
        "genotypePrimers" : [ {
          "id" : 1,
          "genomicStartCoordinate" : 1,
          "genomicEndCoordinate" : 200,
          "name" : "Gpr68wtR",
          "sequence" : "GTAGAGGGACAGGCAGTTGG"
        } ],
        "totalEmbryosInjected" : 72,
        "totalEmbryosSurvived" : 70,
        "embryo2Cell" : "20043",
        "assay" : {
          "id" : 1,
          "typeName" : "T7EN1",
          "numFounderPups" : 26,
          "numFounderSelectedForBreeding" : 1,
          "founderNumAssays" : 26,
          "numDeletionG0Mutants" : 1,
          "numG0WhereMutationDetected" : 1,
          "numHdrG0Mutants" : 1,
          "numHdrG0MutantsAllDonorsInserted" : 0,
          "numHdrG0MutantsSubsetDonorsInserted" : 0,
          "numHrG0Mutants" : 0,
          "numNhejG0Mutants" : 0
        },
        "strainInjectedName" : "C57BL/6NJ"
      },
      "typeName" : "production",
      "statusName" : "Founder Obtained",
      "summaryStatusName" : "Genotype Confirmed",
      "_links" : {
        "self" : {
          "href" : "http://localhost:8080/api/plans/PIN:0000000001"
        },
        "project" : {
          "href" : "http://localhost:8080/api/projects/TPN:000000001"
        }
      },
      "statusDates" : [ {
        "statusName" : "Plan Created",
        "date" : "2018-01-15T00:00:00.706639"
      }, {
        "statusName" : "Attempt In Progress",
        "date" : "2018-01-16T00:00:00.706639"
      }, {
        "statusName" : "Founder Obtained",
        "date" : "2018-02-22T20:18:00.706639"
      }, {
        "statusName" : "Embryos Obtained",
        "date" : "2018-04-04T14:32:00.706639"
      } ],
      "summaryStatusDates" : [ {
        "statusName" : "Genotype Confirmed",
        "date" : "2019-08-06T20:09:51.706639"
      } ],
      "statusTransition" : {
        "currentStatus" : "Founder Obtained",
        "transitions" : [ {
          "action" : "abortWhenFounderObtained",
          "description" : "Abort the plan after a founder obtained",
          "triggeredByUser" : true,
          "available" : false,
          "note" : "The plan has colonies that are not aborted. Please abort them first",
          "nextStatus" : "Attempt Aborted"
        } ],
        "actionToExecute" : null
      }
    }, {
      "pin" : "PIN:0000000222",
      "tpn" : "TPN:000000222",
      "attemptTypeName" : "crispr",
      "funderNames" : [ "KOMP2" ],
      "workUnitName" : "UCD",
      "workGroupName" : "DTCC",
      "comment" : null,
      "crisprAttempt" : {
        "miDate" : "2018-03-26",
        "experimental" : false,
        "comment" : "crispr plan comment",
        "mutagenesisExternalRef" : "MF-26328",
        "imitsMiAttemptId" : 20044,
        "attemptExternalRef" : "Attempt external ref 2",
        "embryoTransferDay" : "Same Day",
        "totalTransferred" : 72,
        "nucleases" : [ {
          "id" : 2,
          "typeName" : "Cas9",
          "concentration" : 250.0,
          "className" : "protein"
        } ],
        "guides" : [ {
          "id" : 2,
          "sequence" : "CCATGATCTAATCTGTGGTTAAA",
          "guideSequence" : "CCATGATCTAATCTGTGGTTAAA",
          "pam" : "AAA",
          "chr" : "14",
          "start" : 57150316,
          "stop" : 57150338,
          "strand" : "+",
          "genomeBuild" : "GRCm39",
          "grnaConcentration" : 300.0,
          "truncatedGuide" : false,
          "reversed" : false,
          "sangerService" : false,
          "gid" : "GID:00000000002",
          "formatName" : "cr-tracrRNA",
          "sourceName" : "in-house"
        } ],
        "mutagenesisDonors" : [ ],
        "reagents" : [ ],
        "genotypePrimers" : [ {
          "id" : 2,
          "genomicStartCoordinate" : 1,
          "genomicEndCoordinate" : 200,
          "name" : "Gpr68wtR",
          "sequence" : "GTAGAGGGACAGGCAGTTGG"
        } ],
        "totalEmbryosInjected" : 70,
        "totalEmbryosSurvived" : 64,
        "embryo2Cell" : "20044",
        "assay" : {
          "id" : 2,
          "typeName" : "LOA",
          "numFounderPups" : 4,
          "numFounderSelectedForBreeding" : 1,
          "founderNumAssays" : 4,
          "numDeletionG0Mutants" : 1,
          "numG0WhereMutationDetected" : 1,
          "numHdrG0Mutants" : null,
          "numHdrG0MutantsAllDonorsInserted" : null,
          "numHdrG0MutantsSubsetDonorsInserted" : null,
          "numHrG0Mutants" : null,
          "numNhejG0Mutants" : null
        },
        "strainInjectedName" : "C57BL/6NJ"
      },
      "typeName" : "production",
      "statusName" : "Founder Obtained",
      "summaryStatusName" : "Founder Obtained",
      "_links" : {
        "self" : {
          "href" : "http://localhost:8080/api/plans/PIN:0000000222"
        },
        "project" : {
          "href" : "http://localhost:8080/api/projects/TPN:000000222"
        }
      },
      "statusDates" : [ {
        "statusName" : "Plan Created",
        "date" : "2018-06-25T00:00:00"
      }, {
        "statusName" : "Attempt In Progress",
        "date" : "2018-06-25T00:00:00"
      }, {
        "statusName" : "Founder Obtained",
        "date" : "2020-01-10T20:25:12.783017"
      }, {
        "statusName" : "Embryos Obtained",
        "date" : "2020-01-10T20:25:12.783017"
      } ],
      "summaryStatusDates" : [ {
        "statusName" : "Founder Obtained",
        "date" : "2020-01-10T20:25:12.783017"
      } ],
      "statusTransition" : {
        "currentStatus" : "Founder Obtained",
        "transitions" : [ {
          "action" : "abortWhenFounderObtained",
          "description" : "Abort the plan after a founder obtained",
          "triggeredByUser" : true,
          "available" : true,
          "note" : null,
          "nextStatus" : "Attempt Aborted"
        } ],
        "actionToExecute" : null
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "http://localhost:8080/api/plans?statusName=Founder Obtained&attemptTypeName=crispr{&pin,tpn,workUnitName,workGroupName,summaryStatusName,typeName,imitsMiAttemptId,imitsPhenotypeAttemptId,phenotypingExternalRef,doNotCountTowardsCompleteness}",
      "templated" : true
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 2,
    "totalPages" : 1,
    "number" : 0
  }
}

6.3.4. Get the history of changes for a plan

You can use this endpoint to see all the changes that have been made on a plan.

Example Request

Curl:

$ curl 'http://localhost:8080/api/plans/PIN:0000000222/history' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6Imd5WFp4R0VsRi10Wk5WVWJ1NnVJdFEiLCJpYXQiOjE3MDg0NDE2NDAsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQ0MH0.Sx7BfT6Sxxr1b4UgPeVU7iYOtoJMmwDpSMR21VYObPPtdz2_4zRcYKAR01DsEiL0EfqSqKmU9W3nLM0MqKbAI-EaulYaX8CgE3DPwBSZHSGvEiZmTdNquX5cbU1x7OS2s2NTVhuexWo-HKuf736z14lkETPnfxYr-z8mJx8mv2-DPphrxa1lTg-HKpjrqdxmboTAj4hDvcxD-c8oUfsDMLzWBgv77LK2nunULqVppzfkI75WaTzPTp7PvsxlFKEufdKwiPDi8bicaxnS5N6HElrqtgGfYDjwUX2kB_OQquXUd81Q79sd9x_UWVh90AimcoeNDCr5QvpKZmGuWbGsFA'
Example Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
Content-Length: 276

[ {
  "id" : 1,
  "user" : "gentar_test_user1@gentar.org",
  "date" : "2020-06-17T15:08:56.643268",
  "comment" : "Plan updated",
  "details" : [ {
    "field" : "comment",
    "oldValue" : "comment",
    "newValue" : "New Plan comment",
    "note" : "Field changed"
  } ]
} ]

6.4. POST

6.4.1. Create a CRISPR plan

Example Request

Curl:

POST /api/plans HTTP/1.1
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6IkpVRXNWTFZfMlRJdXN3SnVvYjN0QmciLCJpYXQiOjE3MDg0NDE2MzUsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQzNX0.kfWuYzrQrnOJruvJZnLehlqdm1Dv8BD7PebNBQvxbvkHZ-3nGjlsFD9wrNR2HDYc9GrlYR0VCjUmHODGA4RUCdBqXSq7wXtTLytr1UeNyI9DhdidYsqxUXyjuYtaK3NGNN6nGRXRQbsImOjW7Wfm22GBvyjFWjowsPFvGYvX_p5kp-kiLww6q7ls906wgg1ZEZYhpjIjcghzVHa50OeNBqcjTiLt5nyoOylgMX1vrcK1BT6VdRWGHma-bJ1DSzafF0_WhEBJV5mPHgx-Ue_vvNv_IXKWglmbHU6pohIk0o6q1PKzaIHytJGEC_6GvOSb9m7poQMwbbdCpCIGTPxpAA
Content-Length: 2292
Host: localhost:8080

{
  "tpn" : "TPN:000000001",
  "attemptTypeName" : "crispr",
  "funderNames" : [ "KOMP" ],
  "workUnitName" : "BCM",
  "workGroupName" : "BaSH",
  "comment" : "example of crispr plan creation",
  "crisprAttempt" : {
    "miDate" : "2019-02-26",
    "experimental" : true,
    "comment" : "crispr plan comment",
    "mutagenesisExternalRef" : "MF-26326",
    "attemptExternalRef" : "attempt external reference",
    "embryoTransferDay" : "Same Day",
    "totalTransferred" : 72,
    "nucleases" : [ {
      "typeName" : "Cas9",
      "concentration" : 250.0,
      "className" : "protein"
    } ],
    "guides" : [ {
      "chr" : "X",
      "start" : 46245139,
      "stop" : 46245161,
      "grnaConcentration" : 300.0,
      "sequence" : "CTTCACGTACCAAGGAGGGGTGG",
      "truncatedGuide" : true,
      "strand" : "+",
      "genomeBuild" : "GRCm38",
      "pam" : "TGG",
      "guideSequence" : "CTTCACGTACCAAGGAGGGG",
      "formatName" : "sgRNA",
      "sourceName" : "commercial",
      "gid" : "GID:00000000001"
    } ],
    "mutagenesisDonors" : [ {
      "concentration" : 5.0,
      "vectorName" : "pUC18_Ikzf2_conditional",
      "oligoSequenceFasta" : "ATAATTGGCAGCCTGATTAGAAGAATGCCCATCTTGTCTAGTGACACATTAGAACAATGAGTAATTGCTCGATGCGGATCCATAACTTCGTATAGCATACATTATACGAAGTTATTCTCTGGGATTAAGAAAAAACTAACATATGAAACAGAAGCCCAGACATCTAAAACCACAAAGA",
      "preparationTypeName" : "Circular"
    } ],
    "reagents" : [ {
      "reagentName" : "Ligase IV",
      "reagentDescription" : "NHEJ Inhibitor",
      "concentration" : 334.0
    } ],
    "genotypePrimers" : [ {
      "genomicStartCoordinate" : 1,
      "genomicEndCoordinate" : 200,
      "name" : "Gpr68wtR",
      "sequence" : "GTAGAGGGACAGGCAGTTGG"
    } ],
    "totalEmbryosInjected" : 72,
    "totalEmbryosSurvived" : 70,
    "embryo2Cell" : "20043",
    "assay" : {
      "typeName" : "T7EN1",
      "numFounderPups" : 26,
      "numFounderSelectedForBreeding" : 1,
      "founderNumAssays" : 26,
      "numDeletionG0Mutants" : 1,
      "numG0WhereMutationDetected" : 1,
      "numHdrG0Mutants" : 1,
      "numHdrG0MutantsAllDonorsInserted" : 0,
      "numHdrG0MutantsSubsetDonorsInserted" : 0,
      "numHrG0Mutants" : 0,
      "numNhejG0Mutants" : 0
    },
    "strainInjectedName" : "C57BL/6NJ"
  },
  "typeName" : "production"
}
Example Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/hal+json
Content-Length: 289

{
  "_links" : {
    "self" : {
      "href" : "http://localhost:8080/api/plans/PIN:0000000014"
    }
  },
  "history" : [ {
    "id" : 1,
    "user" : "gentar_test_user1@gentar.org",
    "date" : "2024-02-20T15:07:16.243658124",
    "comment" : "Plan created",
    "details" : [ ]
  } ]
}

6.4.2. Create an ES Cell plan

Example Request

Curl:

POST /api/plans HTTP/1.1
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6IjZ5cHpHenZ0elJMZW5EWmwxRkdxbEEiLCJpYXQiOjE3MDg0NDE2MzYsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQzNn0.WrOUdUVJwUb15JEttHAnLkk7-UkeWeMriU5PlNacFFrP8gYHr5m3-CX5sZGsrBaMXnsjD1ukHHhJX_gkwaPrJ4AY7U7nwcm1vtN9hB7l-ZmC9TwcJhLX1HErU4wV-BjZuGPSn949DAR2eZxt_qSF3tZE4UINevGvB2JZZ9xlUqtcpVRqvK5wShCXnvxyqI41fACpOlT1fCBcrCXxnkJrus8krrWwNoOuU5w5VPuj_v3HPu-6SkWD_L7edhUZDSIhFaMW_9voz5a7hYrOpTu4MhrUB0Cmn1axoKvRoVmGbQF6ciY_hGsLEnP3DHwnF7OP8cNPNlyXYc-kdrGO6zbhUA
Content-Length: 1482
Host: localhost:8080

{
  "tpn" : "TPN:000000003",
  "attemptTypeName" : "es cell",
  "typeName" : "production",
  "funderNames" : [ "KOMP" ],
  "workUnitName" : "BCM",
  "workGroupName" : "BaSH",
  "comment" : "example of es cell plan creation",
  "esCellAttempt" : {
    "esCellName" : "EPD0045_1_A11",
    "miDate" : "2019-02-26",
    "experimental" : true,
    "comment" : "es cell plan comment",
    "mutagenesisExternalRef" : "MF-26326",
    "attemptExternalRef" : "attempt external reference",
    "blastStrainName" : "C57BL/6NJ",
    "totalBlastsInjected" : 10,
    "totalTransferred" : 8,
    "numberSurrogatesReceiving" : 6,
    "totalPupsBorn" : 6,
    "totalFemaleChimeras" : 2,
    "totalMaleChimeras" : 0,
    "numberOfMalesWith0To39PercentChimerism" : 1,
    "numberOfMalesWith40To79PercentChimerism" : 1,
    "numberOfMalesWith80To99PercentChimerism" : 1,
    "numberOfMalesWith100PercentChimerism" : 3,
    "testCrossStrainName" : "C57BL/6NJ",
    "dateChimerasMated" : "2019-02-26",
    "numberOfChimeraMatingsAttempted" : 2,
    "numberOfChimeraMatingsSuccessful" : 1,
    "numberOfChimerasWithGltFromCct" : 2,
    "numberOfChimerasWithGltFromGenotyping" : 2,
    "numberOfChimerasWith0To9PercentGlt" : 1,
    "numberOfChimerasWith10To49PercentGlt" : 1,
    "numberOfChimerasWith50To99PercentGlt" : 1,
    "numberOfChimerasWith100PercentGlt" : 3,
    "totalF1MiceFromMatings" : 4,
    "numberOfCctOffspring" : 2,
    "numberOfHetOffspring" : 2,
    "numberOfLiveGltOffspring" : 1
  }
}
Example Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/hal+json
Content-Length: 289

{
  "_links" : {
    "self" : {
      "href" : "http://localhost:8080/api/plans/PIN:0000000015"
    }
  },
  "history" : [ {
    "id" : 1,
    "user" : "gentar_test_user1@gentar.org",
    "date" : "2024-02-20T15:07:17.000229161",
    "comment" : "Plan created",
    "details" : [ ]
  } ]
}

6.4.3. Create an ES Cell Allele Modification plan

Example Request

Curl: Unresolved directive in restapi.adoc - include::/usr/src/gentar/rest-api/target/generated-snippets/plans/postEsCellAlleleModificationPlan/http-request.adoc[]

Example Response

Unresolved directive in restapi.adoc - include::/usr/src/gentar/rest-api/target/generated-snippets/plans/postEsCellAlleleModificationPlan/http-response.adoc[]

6.4.4. Create a Phenotyping plan

Example Request

Curl:

POST /api/plans/ HTTP/1.1
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6ImNsanZRWHVTbERjNXI3VUxidzZyUkEiLCJpYXQiOjE3MDg0NDE2MzAsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQzMH0.CV1HThe9XKZOhPfAI0e6Xu2x6BXSjrxtEQHExzQ08_XhiGLLw_DDm814mv9WG67jHuhFlT_KLitRI2jDPOZbiBOBwlgXuwKAeTzxRfss2gnPsYBq9YltitcpN7cGqlDsdxAOjIxqBIgk7usJSQjR-wn8Vm8LDNKf6Q0Of2lyQjWYHWojfjcQw2fX6xKIablmY0iAw1xe6GZTFM9eghqkchdS_pZW7QIVEtrgA-M49hvhJqBcIDTOO_UTtmntcbZuhZSzs-E0JNWaTCYUkTyrMPVCRCxxD4uaLocHfZ2uo740YKt9cGvXS1B46iARBNDIfcmlC6xrKtqUSt22H7vSvw
Content-Length: 500
Host: localhost:8080

{
  "tpn" : "TPN:000000001",
  "funderNames" : [ ],
  "workUnitName" : "UCD",
  "workGroupName" : "DTCC",
  "comment" : null,
  "attemptTypeName" : "adult and embryo phenotyping",
  "typeName" : "phenotyping",
  "phenotypingStartingPoint" : {
    "outcomeTpo" : "TPO:000000000001"
  },
  "phenotypingAttempt" : {
    "phenotypingExternalRef" : "CR1234",
    "phenotypingBackgroundStrainName" : "C57BL/6NJ",
    "doNotCountTowardsCompleteness" : false,
    "cohortProductionWorkUnitName" : "UCD"
  }
}
Example Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/hal+json
Content-Length: 288

{
  "_links" : {
    "self" : {
      "href" : "http://localhost:8080/api/plans/PIN:0000000013"
    }
  },
  "history" : [ {
    "id" : 1,
    "user" : "gentar_test_user1@gentar.org",
    "date" : "2024-02-20T15:07:11.25602194",
    "comment" : "Plan created",
    "details" : [ ]
  } ]
}

6.5. PUT

You can update some information in a plan if you as a user are related to any of the work units associated with the plan.

The only fields that can be modified are the ones shown in "Example Request". The exception are pin and tpn, which are there just as a reference to the object that is being modified (they are not mandatory).

If a value is provided for pin, the system will validate that it matches the pin in the URL parameter.

6.5.1. Update a CRISPR plan

Example Request

Curl:

PUT /api/plans/PIN:0000000001 HTTP/1.1
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6InJkVGtxdHhEblF4Q3dYZWtYRGZPZWciLCJpYXQiOjE3MDg0NDE2MzgsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQzOH0.VEJUt6Gr_pCNVuuq9Knk5-kT6bnY4K5Oa846t63xpYBIZplq0rnBzEtfEwOajTsG3KEzLa0xZRAv1cenH0q8U9UeqA8V_BOQe-ICO9t69k12_zYOvuUUTDJySxQbUkaZFLkPERShRn_DhrjmxYBV-fKYWB7iGto3_orUmu1f4FEvw1Q8weId1e62rXXX53p2hQarmVYvkRzRFW0uq0LEhd2J_sIAZsLQGYljZbRnfMPTfiK256qmpDnfcsKUxSboTySLOEGwvNGD4Lyrg_6aujMFSSEi3M0wlcn8R6bMGlYYEN6Fj7q-wXgKFJI9LtztbA96QJF0I5ryqSi2bQLoaA
Content-Length: 3682
Host: localhost:8080

{
  "pin" : "PIN:0000000001",
  "tpn" : "TPN:000000001",
  "attemptTypeName" : "crispr",
  "funderNames" : [ "KOMP" ],
  "workUnitName" : "BCM",
  "workGroupName" : "BaSH",
  "comment" : "New Plan comment",
  "crisprAttempt" : {
    "miDate" : "2019-02-26",
    "experimental" : false,
    "comment" : "New Crispr Comment",
    "mutagenesisExternalRef" : "MF-26326",
    "imitsMiAttemptId" : 20043,
    "attemptExternalRef" : "Attempt external ref",
    "embryoTransferDay" : "Same Day",
    "totalTransferred" : 72,
    "nucleases" : [ {
      "id" : 1,
      "typeName" : "Cas9",
      "concentration" : 250.0,
      "className" : "protein"
    } ],
    "guides" : [ {
      "id" : 1,
      "sequence" : "CTTCACGTACCAAGGAGGGGTGG",
      "guideSequence" : "CTTCACGTACCAAGGAGGGG",
      "pam" : "TGG",
      "chr" : "X",
      "start" : 45334016,
      "stop" : 45334038,
      "strand" : "+",
      "genomeBuild" : "GRCm39",
      "grnaConcentration" : 300.0,
      "truncatedGuide" : true,
      "reversed" : false,
      "sangerService" : false,
      "formatName" : "sgRNA",
      "sourceName" : "commercial",
      "gid" : "GID:00000000001"
    } ],
    "mutagenesisDonors" : [ {
      "id" : 1,
      "concentration" : 5.0,
      "vectorName" : "pUC18_Ikzf2_conditional",
      "oligoSequenceFasta" : "ATAATTGGCAGCCTGATTAGAAGAATGCCCATCTTGTCTAGTGACACATTAGAACAATGAGTAATTGCTCGATGCGGATCCATAACTTCGTATAGCATACATTATACGAAGTTATTCTCTGGGATTAAGAAAAAACTAACATATGAAACAGAAGCCCAGACATCTAAAACCACAAAGA",
      "preparationTypeName" : "Circular"
    } ],
    "reagents" : [ {
      "id" : 1,
      "reagentName" : "Ligase IV",
      "reagentDescription" : "NHEJ Inhibitor",
      "concentration" : 334.0
    } ],
    "genotypePrimers" : [ {
      "id" : 1,
      "genomicStartCoordinate" : 1,
      "genomicEndCoordinate" : 200,
      "name" : "Gpr68wtR",
      "sequence" : "GTAGAGGGACAGGCAGTTGG"
    } ],
    "totalEmbryosInjected" : 10,
    "totalEmbryosSurvived" : 5,
    "embryo2Cell" : "20043",
    "assay" : {
      "id" : 1,
      "typeName" : "T7EN1",
      "numFounderPups" : 26,
      "numFounderSelectedForBreeding" : 1,
      "founderNumAssays" : 26,
      "numDeletionG0Mutants" : 1,
      "numG0WhereMutationDetected" : 1,
      "numHdrG0Mutants" : 1,
      "numHdrG0MutantsAllDonorsInserted" : 0,
      "numHdrG0MutantsSubsetDonorsInserted" : 0,
      "numHrG0Mutants" : 0,
      "numNhejG0Mutants" : 0
    },
    "strainInjectedName" : "C57BL/6NJ"
  },
  "typeName" : "production",
  "statusName" : "Founder Obtained",
  "summaryStatusName" : "Genotype Confirmed",
  "_links" : {
    "self" : {
      "href" : "http://localhost:8080/api/plans/PIN:0000000001"
    },
    "project" : {
      "href" : "http://localhost:8080/api/projects/TPN:000000001"
    }
  },
  "statusDates" : [ {
    "statusName" : "Plan Created",
    "date" : "2018-01-15T00:00:00.706639"
  }, {
    "statusName" : "Attempt In Progress",
    "date" : "2018-01-16T00:00:00.706639"
  }, {
    "statusName" : "Founder Obtained",
    "date" : "2018-02-22T20:18:00.706639"
  }, {
    "statusName" : "Embryos Obtained",
    "date" : "2018-04-04T14:32:00.706639"
  } ],
  "summaryStatusDates" : [ {
    "statusName" : "Genotype Confirmed",
    "date" : "2019-08-06T20:09:51.706639"
  } ],
  "statusTransition" : {
    "currentStatus" : "Founder Obtained",
    "transitions" : [ {
      "action" : "abortWhenFounderObtained",
      "description" : "Abort the plan after a founder obtained",
      "triggeredByUser" : true,
      "available" : false,
      "note" : "The plan has colonies that are not aborted. Please abort them first",
      "nextStatus" : "Attempt Aborted"
    } ],
    "actionToExecute" : null
  }
}
Example Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/hal+json
Content-Length: 870

{
  "_links" : {
    "self" : {
      "href" : "http://localhost:8080/api/plans/PIN:0000000001"
    }
  },
  "history" : [ {
    "id" : 1,
    "user" : "gentar_test_user1@gentar.org",
    "date" : "2024-02-20T15:07:18.393315938",
    "comment" : "Plan updated",
    "details" : [ {
      "field" : "comment",
      "oldValue" : null,
      "newValue" : "New Plan comment",
      "note" : "Field changed"
    }, {
      "field" : "crisprAttempt.comment",
      "oldValue" : "crispr plan comment",
      "newValue" : "New Crispr Comment",
      "note" : "Field changed"
    }, {
      "field" : "crisprAttempt.totalEmbryosInjected",
      "oldValue" : "72",
      "newValue" : "10",
      "note" : "Field changed"
    }, {
      "field" : "crisprAttempt.totalEmbryosSurvived",
      "oldValue" : "70",
      "newValue" : "5",
      "note" : "Field changed"
    } ]
  } ]
}

6.5.2. Update a ES Cell plan

Example Request

Curl:

PUT /api/plans/PIN:0000000010 HTTP/1.1
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6ImNxLXJJekZtZGxnR3ZlOG1QeEU1MGciLCJpYXQiOjE3MDg0NDE2MzIsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQzMn0.c3CAyVPJupdpeA2nsXevnycx5NQ6MemJMVF678Ni-acY9kY6XTjNdN85QHJETtA82QB1qtTXKsrQZUwzyqUtECbVLFuT41z5yQOFGBPSCY_yDSBWVxkW_I_uR4zQ3Ick5NL_dg9049q_TSRqCXOrLr276SIvSlVz2ebSiFVBTq3dYbVolB64QGjrninZnpopgl9n2OzJlTA-CUYs6KiakgwJ7S3EtxCAXrWi4762STG6LTmQtbXCfC9T_qV6TostjXiweoONe7sphK3XxyOpGTawuC1NmKw4l1Ga1f0yz-M0hOB_IBU_CbIJLcSqUBb-8F5g3h5BJVXEgpnrYmu90A
Content-Length: 1599
Host: localhost:8080

{
  "pin" : "PIN:0000000010",
  "tpn" : "TPN:000000003",
  "attemptTypeName" : "es cell",
  "funderNames" : [ "KOMP" ],
  "workUnitName" : "BCM",
  "workGroupName" : "BaSH",
  "comment" : "New Plan comment",
  "esCellAttempt" : {
    "esCellName" : "EPD0045_1_A11",
    "miDate" : "2007-04-24",
    "experimental" : false,
    "comment" : "additional information",
    "blastStrainName" : "C57BL/6NJ",
    "totalBlastsInjected" : 44,
    "totalTransferred" : 40,
    "numberSurrogatesReceiving" : 0,
    "totalPupsBorn" : 25,
    "totalFemaleChimeras" : 5,
    "totalMaleChimeras" : 2,
    "totalChimeras" : 7,
    "numberOfMalesWith0To39PercentChimerism" : 1,
    "numberOfMalesWith40To79PercentChimerism" : 1,
    "numberOfMalesWith80To99PercentChimerism" : 0,
    "numberOfMalesWith100PercentChimerism" : 0,
    "testCrossStrainName" : "BALB/cJ",
    "dateChimerasMated" : "2007-06-18",
    "numberOfChimeraMatingsAttempted" : 6,
    "numberOfChimeraMatingsSuccessful" : 5,
    "numberOfChimerasWithGltFromCct" : 1,
    "numberOfChimerasWithGltFromGenotyping" : 1,
    "numberOfChimerasWith0To9PercentGlt" : 0,
    "numberOfChimerasWith10To49PercentGlt" : 1,
    "numberOfChimerasWith50To99PercentGlt" : 0,
    "numberOfChimerasWith100PercentGlt" : 0,
    "totalF1MiceFromMatings" : 32,
    "numberOfCctOffspring" : 3,
    "cassetteTransmissionVerified" : "2007-10-21",
    "numberOfHetOffspring" : 2,
    "numberOfLiveGltOffspring" : 0,
    "imitsMiAttemptId" : 2030,
    "attemptExternalRef" : "MAKE"
  },
  "typeName" : "production",
  "statusTransition" : {
    "actionToExecute" : null
  }
}
Example Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/hal+json
Content-Length: 874

{
  "_links" : {
    "self" : {
      "href" : "http://localhost:8080/api/plans/PIN:0000000010"
    }
  },
  "history" : [ {
    "id" : 1,
    "user" : "gentar_test_user1@gentar.org",
    "date" : "2024-02-20T15:07:13.115514204",
    "comment" : "Plan updated",
    "details" : [ {
      "field" : "comment",
      "oldValue" : null,
      "newValue" : "New Plan comment",
      "note" : "Field changed"
    }, {
      "field" : "esCellAttempt.cassetteTransmissionVerifiedAutoComplete",
      "oldValue" : "false",
      "newValue" : "true",
      "note" : "Field changed"
    }, {
      "field" : "esCellAttempt.totalF1MiceFromMatings",
      "oldValue" : "52",
      "newValue" : "32",
      "note" : "Field changed"
    }, {
      "field" : "esCellAttempt.totalTransferred",
      "oldValue" : "44",
      "newValue" : "40",
      "note" : "Field changed"
    } ]
  } ]
}

6.5.3. Update a ES Cell allele modification plan

Example Request

Curl:

PUT /api/plans/PIN:0000000009 HTTP/1.1
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6ImtGTDNoUzR0MXRrT3FQMHNaTVN6VXciLCJpYXQiOjE3MDg0NDE2NDEsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQ0MX0.gaHUfUSggFtrW2A1Nm6wybIvq8UYb4UKRdsSTSsfeAK7A5rETM5QkyUWMXm5m8u1Z_grVF-WS6jCcR2hOY3z0n306QjSoXgX737dZKPV6xX_ufjbPjZWgjTiBeodfeTt6ASHbY_S55pQcdgkeknqE4gEzO7VnwtuBgKOwYn-pq08ZpmPkmBfWSNs9XUoDaxxqblCiKiz3CUK0R5BHPzByMj93d9Uc3PcP8BNvvNvuGQ8gclYOcTfGZXHF8FbguQotKKZJfcYR-tbWyiVjBWdluxiZAOBKl7cIMPcOX50Xv0BLasALRlRZpZPcaxMteSyOmauxUzQEyofw56TYd9NHg
Content-Length: 951
Host: localhost:8080

{
  "pin" : "PIN:0000000009",
  "tpn" : "TPN:000000003",
  "attemptTypeName" : "es cell allele modification",
  "funderNames" : [ "KOMP" ],
  "workUnitName" : "BCM",
  "workGroupName" : "BaSH",
  "comment" : null,
  "esCellAlleleModificationStartingPoint" : {
    "_links" : {
      "outcome" : {
        "href" : "http://localhost:8080/api/plans/PIN:0000000010/outcomes/TPO:000000000003"
      },
      "productionPlan" : {
        "href" : "http://localhost:8080/api/plans/PIN:0000000010"
      }
    },
    "outcomeTpo" : "TPO:000000000003",
    "productionPlanPin" : "PIN:0000000010"
  },
  "esCellAlleleModificationAttempt" : {
    "modificationExternalRef" : "GSF-EPD0045_1_B11-3-1",
    "numberOfCreMatingsSuccessful" : 3,
    "tatCre" : true,
    "deleterStrainName" : "BALB/cJ",
    "imitsMouseAlleleModId" : 1775,
    "imitsTargRepAlleleId" : 1878
  },
  "typeName" : "production",
  "statusTransition" : {
    "actionToExecute" : null
  }
}
Example Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/hal+json
Content-Length: 609

{
  "_links" : {
    "self" : {
      "href" : "http://localhost:8080/api/plans/PIN:0000000009"
    }
  },
  "history" : [ {
    "id" : 1,
    "user" : "gentar_test_user1@gentar.org",
    "date" : "2024-02-20T15:07:21.866851975",
    "comment" : "Plan updated",
    "details" : [ {
      "field" : "esCellAlleleModificationAttempt.numberOfCreMatingsSuccessful",
      "oldValue" : "1",
      "newValue" : "3",
      "note" : "Field changed"
    }, {
      "field" : "esCellAlleleModificationAttempt.tatCre",
      "oldValue" : "false",
      "newValue" : "true",
      "note" : "Field changed"
    } ]
  } ]
}

6.5.4. Update a phenotyping plan

Example Request

Curl:

PUT /api/plans/PIN:0000000003 HTTP/1.1
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6ImpGNG5lR25qbmMwU2dXbjNwM1pIMXciLCJpYXQiOjE3MDg0NDE2MzksInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQzOX0.baE-Z2mIuJhseUDcBPMKpUSna_7SbfL3r5Fo_pI3Go8j3jPxcytbMwl9y5rqBUiGw4xOqvqhmKZwUhoYIzXyMb7dJtspZfRe2zdazIwnmPcVAFt9_sPNOSTRfW4S1nCa9y7T4z8z-LXP5Jzyzb5oA4gJpsiAdWhHisC0g63F7qXFYWZwfle8SzLPIF_VenmlBLElocGCDVVgOguK5nNuyQiNc3Ft77QcZQ_gsaf9ZbYcvB9BRg_BFu-VqoSOJloQ3tVQLLV66NxuuuVZH0XRyhH1pBlo67JvSuECto9QHyd-WiYcevKx0cqd_4OtKlv370HH9VqiiBG2zwde3WonQA
Content-Length: 494
Host: localhost:8080

{
  "pin" : "PIN:0000000003",
  "tpn" : "TPN:000000001",
  "attemptTypeName" : "adult and embryo phenotyping",
  "funderNames" : [ "KOMP" ],
  "workUnitName" : "BCM",
  "workGroupName" : "BaSH",
  "comment" : "New Plan comment",
  "typeName" : "phenotyping",
  "phenotypingExternalRef" : "CR10129",
  "doNotCountTowardsCompleteness" : false,
  "phenotypingBackgroundStrainName" : "C57BL/6NJ",
  "cohortProductionWorkUnitName" : "BCM",
  "statusTransition" : {
    "actionToExecute" : null
  }
}
Example Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/hal+json
Content-Length: 419

{
  "_links" : {
    "self" : {
      "href" : "http://localhost:8080/api/plans/PIN:0000000003"
    }
  },
  "history" : [ {
    "id" : 1,
    "user" : "gentar_test_user1@gentar.org",
    "date" : "2024-02-20T15:07:19.929475159",
    "comment" : "Plan updated",
    "details" : [ {
      "field" : "comment",
      "oldValue" : null,
      "newValue" : "New Plan comment",
      "note" : "Field changed"
    } ]
  } ]
}

7. Outcomes

This section describes the REST endpoints for outcomes in the system.

An outcome can be either a colony or a specimen.

7.1. Fields

These are the fields you are going to see in the body of a request in a GET or in the payload for POST or PUT operations.

7.1.1. Colony

Path Type Description

pin

String

Public identifier for the plan.

tpo

String

Public identifier for the outcome.

outcomeTypeName

String

Outcome type.

_links.mutations[].href

String

Mutation associated with the outcome.

_links.self.href

String

Link to the outcome.

colony

Object

Colony information.

colony.name

String

Name of the colony. It needs to be unique.

colony.genotypingComment

String

Comment about the genotyping.

colony.statusName

String

Current status of the colony.

colony.backgroundStrainName

String

Name of the background strain used for the colony.

colony.statusDates[]

Array

Stamps of the statuses the colony has gone through.

colony.statusDates[].statusName

String

Status that the colony had on a specific date.

colony.statusDates[].date

String

Date of the status change.

colony.distributionProducts[]

Array

Distribution products associated with the colony.

colony.distributionProducts[].id

Number

Id for the record in the system.

colony.distributionProducts[].distributionCentreName

String

Centre for the distribution product.

colony.distributionProducts[].productTypeName

String

Product type name.

colony.distributionProducts[].distributionNetworkName

String

Distribution Network name.

colony.distributionProducts[].startDate

String

Start date of the distribution product.

colony.distributionProducts[].endDate

String

End date of the distribution product.

colony.statusTransition

Object

Information about the current state in the state machine for the plan.

colony.statusTransition.currentStatus

String

Current status in the plan

colony.statusTransition.transitions[]

Array

Transitions in the state machine given the current state.

colony.statusTransition.transitions[].action

String

Action or transition’s name.

colony.statusTransition.transitions[].description

String

Transition’s description.

colony.statusTransition.transitions[].triggeredByUser

Boolean

Indicates whether the transition is executed by the user or by the system.

colony.statusTransition.transitions[].available

Boolean

Indicates if the transition can be executed at the moment.

colony.statusTransition.transitions[].note

Null

Additional explanation about the availability to execute the transition.

colony.statusTransition.transitions[].nextStatus

String

Next status that the plan will have if the transition is executed.

colony.statusTransition.actionToExecute

Null

Name of the transition (action) to execute.

colony.distributionProducts[].distributionIdentifier

String

Rr id for distribution.

7.1.2. Specimen

Path Type Description

pin

String

Public identifier for the plan.

tpo

String

Public identifier for the outcome.

outcomeTypeName

String

Outcome type.

_links.mutations[].href

String

Mutation associated with the outcome.

_links.self.href

String

Link to the outcome.

specimen

Object

Specimen information.

specimen.backgroundStrainName

String

Name of the strain associated with the specimen.

specimen.specimenExternalRef

String

External reference for the specimen.

specimen.specimenTypeName

String

Specimen type name. Currently only haplo-essential

specimen.statusName

String

Current status of the specimen

specimen.statusDates[]

Array

Stamps of the statuses the specimen has gone through.

specimen.statusDates[].statusName

String

Status that the specimen had on a specific date.

specimen.statusDates[].date

String

Date of the status change.

specimen.specimenProperties[]

Array

Additional values for the specimen.

specimen.specimenProperties[].id

Number

Id of the record in the system.

specimen.specimenProperties[].propertyTypeName

String

Name of the property.

specimen.specimenProperties[].value

String

Value of the property.

specimen.statusTransition

Object

Information about the current state in the state machine for the plan.

specimen.statusTransition.currentStatus

String

Current status in the plan

specimen.statusTransition.transitions[]

Array

Transitions in the state machine given the current state.

specimen.statusTransition.transitions[].action

String

Action or transition’s name.

specimen.statusTransition.transitions[].description

String

Transition’s description.

specimen.statusTransition.transitions[].triggeredByUser

Boolean

Indicates whether the transition is executed by the user or by the system.

specimen.statusTransition.transitions[].available

Boolean

Indicates if the transition can be executed at the moment.

specimen.statusTransition.transitions[].note

String

Additional explanation about the availability to execute the transition.

specimen.statusTransition.transitions[].nextStatus

String

Next status that the plan will have if the transition is executed.

specimen.statusTransition.actionToExecute

Null

Name of the transition (action) to execute.

7.2. GET

7.2.1. Get a specific outcome (Colony)

This endpoint a specific outcome belonging to a plan. In this example the outcome is a colony.

Example Request

Curl:

$ curl 'http://localhost:8080/api/plans/PIN:0000000001/outcomes/TPO:000000000001' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6IlF1UGp2N0t2aFZ4b1NaRThGdTlQc0EiLCJpYXQiOjE3MDg0NDE2NTcsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQ1N30.eUmzUaNYmDp-2tDqNzf_IYG45vCwTlX61mRPlXzPhwXSKSuc013OSbAJ40ddddRRrhaz1y82KtQiECumi2VBa9Ok6nKmFwgbq02XtOzWjXaWMTxFW7YUsZLpymonvHMG6pGUBmUN3DqZ6-hvxz4anFzTtqMvXYB27ZFSo5DsmIhmQM-Cv1p-9OB0gbGD0D5pE7MUvX2bLvD4IQR_brWdVTtQKLgI0sT4eLkPuW0umKPv0RYAOEo2nuuj0PI0LUWw1ge8SHtp7SE8ST4R5US8cXS-l5WNf9hPTNihxXzttLB8ttlCrh-8ucIPUti7hew6F0D5vhl5FUuKxKqB1uy38w'
Example Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/hal+json
Content-Length: 1930

{
  "pin" : "PIN:0000000001",
  "tpo" : "TPO:000000000001",
  "outcomeTypeName" : "Colony",
  "colony" : {
    "name" : "jr34293",
    "genotypingComment" : "An example comment for the genotyping.",
    "statusName" : "Genotype In Progress",
    "statusDates" : [ {
      "statusName" : "Genotype In Progress",
      "date" : "2019-08-06T20:09:51.896778"
    } ],
    "backgroundStrainName" : "C57BL/6NJ",
    "distributionProducts" : [ {
      "id" : 1,
      "distributionCentreName" : "BCM",
      "productTypeName" : "Live mice",
      "distributionNetworkName" : "MMRRC",
      "startDate" : "2018-04-19",
      "endDate" : "2018-11-09",
      "distributionIdentifier" : "11"
    } ],
    "statusTransition" : {
      "currentStatus" : "Genotype In Progress",
      "transitions" : [ {
        "action" : "confirmGenotypeWhenInProgress",
        "description" : "Confirm Genotype when Genotype In Progress",
        "triggeredByUser" : true,
        "available" : true,
        "note" : null,
        "nextStatus" : "Genotype Confirmed"
      }, {
        "action" : "updateFromGenotypeInProgressToGenotypeNotConfirmed",
        "description" : "Update from Genotype In Progress to Genotype Not Confirmed",
        "triggeredByUser" : true,
        "available" : true,
        "note" : null,
        "nextStatus" : "Genotype Not Confirmed"
      }, {
        "action" : "abortGenotypeInProgress",
        "description" : "Abort a colony that is Genotype In Progress",
        "triggeredByUser" : true,
        "available" : true,
        "note" : null,
        "nextStatus" : "Colony Aborted"
      } ],
      "actionToExecute" : null
    }
  },
  "_links" : {
    "self" : {
      "href" : "http://localhost:8080/api/plans/PIN:0000000001/outcomes/TPO:000000000001"
    },
    "mutations" : [ {
      "href" : "http://localhost:8080/api/plans/PIN:0000000001/outcomes/TPO:000000000001/mutations/MIN:000000000001"
    } ]
  }
}

7.2.2. Get a specific outcome (Specimen)

This endpoint a specific outcome belonging to a plan. In this example the outcome is a colony.

Example Request

Curl:

$ curl 'http://localhost:8080/api/plans/PIN:0000000001/outcomes/TPO:000000000004' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6IjVzZFZwZXNoZW1MSm1WRFVlNDh6TFEiLCJpYXQiOjE3MDg0NDE2NTYsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQ1Nn0.XANxi7vFEmMn-3J5zp_8atssSBrBNsg_Zl2KOJAFBfHFQ3-WXHF-U3QjGh3HILEpIBT6BCovZb6Vl9MasgtD3u_CtSjnHWWZx1Zirf8xP2aTdD5lKRV4dGFwtcvTEaGELAfN7m_qRmYxCHQiFYcbgOtEj0-y5Y-USSAp7atqPvytWBbgxLrlzd4lW3OWvDyT92QBmfTkZnS_966uWJduUynq_DZQSOdOtcMJhDpefAUFlzMGwubbpHYOG8DldrEonV_5YvsELhn8KQgLgb9Al9Vdryp6DqpWRVICX--OukstMy7jLOu009qiInjQtegSm5WwYjLT4cxSI2HoC8MTUw'
Example Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/hal+json
Content-Length: 1258

{
  "pin" : "PIN:0000000001",
  "tpo" : "TPO:000000000004",
  "outcomeTypeName" : "Specimen",
  "specimen" : {
    "specimenExternalRef" : "External reference",
    "specimenTypeName" : "haplo-essential",
    "statusName" : "Specimen Group In Progress",
    "statusDates" : [ {
      "statusName" : "Specimen Group In Progress",
      "date" : "2019-08-06T20:09:51.896778"
    } ],
    "backgroundStrainName" : "C57BL/6NJ",
    "specimenProperties" : [ {
      "id" : 1,
      "propertyTypeName" : "Property 1",
      "value" : "Value 1"
    } ],
    "statusTransition" : {
      "currentStatus" : "Specimen Group In Progress",
      "transitions" : [ {
        "action" : "abortSpecimenGroup",
        "description" : "Abort a specimen group",
        "triggeredByUser" : true,
        "available" : false,
        "note" : "Specimen cannot be aborted [Not implemented yet.]",
        "nextStatus" : "Specimen Group Aborted"
      } ],
      "actionToExecute" : null
    }
  },
  "_links" : {
    "self" : {
      "href" : "http://localhost:8080/api/plans/PIN:0000000001/outcomes/TPO:000000000004"
    },
    "mutations" : [ {
      "href" : "http://localhost:8080/api/plans/PIN:0000000001/outcomes/TPO:000000000004/mutations/MIN:000000000001"
    } ]
  }
}

7.2.3. Get all outcomes in a plan

This endpoint shows all the outcomes associated to a plan.

Example Request

Curl:

$ curl 'http://localhost:8080/api/plans/PIN:0000000001/outcomes' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6Ing3RTNMY29SbllQM0c4UDFXUlJJUmciLCJpYXQiOjE3MDg0NDE2NTUsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQ1NX0.mEEMr7lFB5P5DjgLi6XAnY-wyKQ8aAS1Z90tU1g9XjeCo29tMN4Dsa7iS_PGowsdNPd9VymejevTKZ0sOVBUNwhvdW_izgRGR7Ltt5FxXKAFRZDFCQtoDbVKI449zKauArq5FbkNaKjok2Ouohf6_oVCBQngsYS7lhrBj_ATH5DAWMSbxX2AG9lTaJ3WqqxGzBGajM-GSU_l5BF6fYvrah2FpycpyhPTuqoFPOmhmJXCbpqYJTM98xGrSPL_ALqZf04bJrC32M4QCSHIEi5Sv2wwreZ2-dy8V7n9xlTeLR_u-sgCc-SmklPULBzGjJQ3VSEA7y7NMNpTHvnfn7K4Kg'
Example Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/hal+json
Content-Length: 4406

{
  "_embedded" : {
    "outcomes" : [ {
      "pin" : "PIN:0000000001",
      "tpo" : "TPO:000000000004",
      "outcomeTypeName" : "Specimen",
      "specimen" : {
        "specimenExternalRef" : "External reference",
        "specimenTypeName" : "haplo-essential",
        "statusName" : "Specimen Group In Progress",
        "statusDates" : [ {
          "statusName" : "Specimen Group In Progress",
          "date" : "2019-08-06T20:09:51.896778"
        } ],
        "backgroundStrainName" : "C57BL/6NJ",
        "specimenProperties" : [ {
          "id" : 1,
          "propertyTypeName" : "Property 1",
          "value" : "Value 1"
        } ],
        "statusTransition" : {
          "currentStatus" : "Specimen Group In Progress",
          "transitions" : [ {
            "action" : "abortSpecimenGroup",
            "description" : "Abort a specimen group",
            "triggeredByUser" : true,
            "available" : false,
            "note" : "Specimen cannot be aborted [Not implemented yet.]",
            "nextStatus" : "Specimen Group Aborted"
          } ],
          "actionToExecute" : null
        }
      },
      "_links" : {
        "self" : {
          "href" : "http://localhost:8080/api/plans/PIN:0000000001/outcomes/TPO:000000000004"
        },
        "mutations" : [ {
          "href" : "http://localhost:8080/api/plans/PIN:0000000001/outcomes/TPO:000000000004/mutations/MIN:000000000001"
        } ]
      }
    }, {
      "pin" : "PIN:0000000001",
      "tpo" : "TPO:000000000001",
      "outcomeTypeName" : "Colony",
      "colony" : {
        "name" : "jr34293",
        "genotypingComment" : "An example comment for the genotyping.",
        "statusName" : "Genotype In Progress",
        "statusDates" : [ {
          "statusName" : "Genotype In Progress",
          "date" : "2019-08-06T20:09:51.896778"
        } ],
        "backgroundStrainName" : "C57BL/6NJ",
        "distributionProducts" : [ {
          "id" : 1,
          "distributionCentreName" : "BCM",
          "productTypeName" : "Live mice",
          "distributionNetworkName" : "MMRRC",
          "startDate" : "2018-04-19",
          "endDate" : "2018-11-09",
          "distributionIdentifier" : "11"
        } ],
        "statusTransition" : {
          "currentStatus" : "Genotype In Progress",
          "transitions" : [ {
            "action" : "confirmGenotypeWhenInProgress",
            "description" : "Confirm Genotype when Genotype In Progress",
            "triggeredByUser" : true,
            "available" : true,
            "note" : null,
            "nextStatus" : "Genotype Confirmed"
          }, {
            "action" : "updateFromGenotypeInProgressToGenotypeNotConfirmed",
            "description" : "Update from Genotype In Progress to Genotype Not Confirmed",
            "triggeredByUser" : true,
            "available" : true,
            "note" : null,
            "nextStatus" : "Genotype Not Confirmed"
          }, {
            "action" : "abortGenotypeInProgress",
            "description" : "Abort a colony that is Genotype In Progress",
            "triggeredByUser" : true,
            "available" : true,
            "note" : null,
            "nextStatus" : "Colony Aborted"
          } ],
          "actionToExecute" : null
        }
      },
      "_links" : {
        "self" : {
          "href" : "http://localhost:8080/api/plans/PIN:0000000001/outcomes/TPO:000000000001"
        },
        "mutations" : [ {
          "href" : "http://localhost:8080/api/plans/PIN:0000000001/outcomes/TPO:000000000001/mutations/MIN:000000000001"
        } ]
      }
    }, {
      "pin" : "PIN:0000000001",
      "tpo" : "TPO:000000000002",
      "outcomeTypeName" : "Colony",
      "_links" : {
        "self" : {
          "href" : "http://localhost:8080/api/plans/PIN:0000000001/outcomes/TPO:000000000002"
        }
      }
    }, {
      "pin" : "PIN:0000000001",
      "tpo" : "TPO:000000000003",
      "outcomeTypeName" : "Specimen",
      "_links" : {
        "self" : {
          "href" : "http://localhost:8080/api/plans/PIN:0000000001/outcomes/TPO:000000000003"
        }
      }
    }, {
      "pin" : "PIN:0000000001",
      "tpo" : "TPO:000000000005",
      "outcomeTypeName" : "Colony",
      "_links" : {
        "self" : {
          "href" : "http://localhost:8080/api/plans/PIN:0000000001/outcomes/TPO:000000000005"
        }
      }
    } ]
  }
}

7.2.4. Get the history of changes for an outcome

You can use this endpoint to see all the changes that have been made on an outcome.

Example Request

Curl:

$ curl 'http://localhost:8080/api/plans/PIN:0000000001/outcomes/TPO:000000000002/history' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6IkdVc3Z4OF9yMzVnTXVrZGMtaXZxVnciLCJpYXQiOjE3MDg0NDE2NTYsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQ1Nn0.ViEbOW8H936oO8FIsjoWyxffSBxzI4omNubeV3AvozJqkdSNgssww8DfEUGZOESFU0MBMAs-E8mv1iZI7xn1z6w0Ov4dMrwffj4BupczSOVhY5PGLK1-S_XvIC73WR9ENMCyLwgTOpV5i_CkV1h0vf10cF60rVgk262i0XIMFw2BSpRZa2O4prwsxVVzUmP1Qu4OrRuGe_qka7V2YbRLm1DtwCP1CxpV-XRK8TJsjo7P6RfOoNeplrTEevrC85ZKRc3Yo4--lNzyLKiJ2XGzK-sPoIXXjU-HbZw7qSoy9gvSVhh2iYBYcJhyVKofxXcQjtq1fZ2BFhEkuwWiR3CurA'
Example Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
Content-Length: 307

[ {
  "id" : 1,
  "user" : "gentar_test_user1@gentar.org",
  "date" : "2020-06-17T15:08:56.643268",
  "comment" : "Outcome updated",
  "details" : [ {
    "field" : "colony.genotypingComment",
    "oldValue" : "Comment version 1",
    "newValue" : "Comment version 2",
    "note" : "Field changed"
  } ]
} ]

7.3. POST

7.3.1. Create an outcome (colony)

Example Request

Curl: Unresolved directive in restapi.adoc - include::/usr/src/gentar/rest-api/target/generated-snippets/outcomes/postColonyOutcome/http-request.adoc[]

Example Response

Unresolved directive in restapi.adoc - include::/usr/src/gentar/rest-api/target/generated-snippets/outcomes/postColonyOutcome/http-response.adoc[]

7.4. PUT

7.4.1. Update an outcome (colony)

Example Request

Curl:

PUT /api/plans/PIN:0000000001/outcomes/TPO:000000000001 HTTP/1.1
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6ImFDRmQ5VVlLMVNLZDVqZm9BUDUyRlEiLCJpYXQiOjE3MDg0NDE2NTUsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQ1NX0.cFw3KPaE-pXRIes_g2jqBc1a9xTvboEbownyUP35frJ-eA-SS5RtV79py5CXdUkLJwc9hQ4XVOqTbaT7KUTbO9yx6rcVyrQphJp3xxxDrt0-hTYFWb6Y5lzLhaTeGv0sOTneemjWYcGeLD-75W-iLWJaPRgif1iATQfnTXa7iR6Tz-Xzl-BThAOUOBvRQJegn5i0xq7jdnlznFjW7sd1BROXC0YOCRGEEmr0SlzOEEKawhpcyNeg7MQCHtGhshRXhDzm89Quo-xhgpu13JnEtWfmfgyEVwORxzxSWim_ZkAh1BUF8ZKCGTp0bw4iefDKLOBAeaP8XiQRGzIf7o1pSA
Content-Length: 573
Host: localhost:8080

{
  "tpo" : "TPO:000000000001",
  "outcomeTypeName" : "Colony",
  "colony" : {
    "name" : "jr34293",
    "genotypingComment" : "Genotyping comment changed.",
    "backgroundStrainName" : "C57BL/6NJ",
    "distributionProducts" : [ {
      "id" : 1,
      "distributionCentreName" : "BCM",
      "productTypeName" : "Live mice",
      "distributionNetworkName" : "MMRRC",
      "endDate" : "2018-11-09T00:00:00",
      "startDate" : "2018-04-19T00:00:00",
      "distributionIdentifier" : "11"
    } ],
    "statusTransition" : {
      "actionToExecute" : null
    }
  }
}
Example Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/hal+json
Content-Length: 512

{
  "_links" : {
    "self" : {
      "href" : "http://localhost:8080/api/plans/PIN:0000000001/outcomes/TPO:000000000001"
    }
  },
  "history" : [ {
    "id" : 1,
    "user" : "gentar_test_user1@gentar.org",
    "date" : "2024-02-20T15:07:36.075296519",
    "comment" : "Outcome updated",
    "details" : [ {
      "field" : "colony.genotypingComment",
      "oldValue" : "An example comment for the genotyping.",
      "newValue" : "Genotyping comment changed.",
      "note" : "Field changed"
    } ]
  } ]
}

8. Mutations

This section describes the REST endpoints for mutations in the system.

8.1. Fields

These are the fields you are going to see in the body of a request in a GET or in the payload for POST or PUT operations.

Path Type Description

id

Number

id. READ ONLY

min

String

Public identifier for the mutation. READ ONLY

mgiAlleleId

String

Public identifier assigned by MGI for the allele or aberration. READ ONLY

symbol

String

Allele or aberration symbol. SPECIFY ONLY WHEN CREATING

mgiAlleleSymbolWithoutImpcAbbreviation

Boolean

[THIS FIELD IS DEPRECATED AND WILL BE REMOVED] Used to indicate whether the allele symbol includes the IMPC abbreviation. SPECIFY ONLY WHEN CREATING

mgiAlleleSymbolRequiresConstruction

Boolean

[THIS FIELD IS DEPRECATED AND WILL BE REMOVED] Indicates if the allele symbol needs to be constructed from a superscript recorded in the mgiAlleleSymbol field and the associated gene information. SPECIFY ONLY WHEN CREATING

geneticMutationTypeName

String

Formal classification of the mutation in genetic terms, or an indication that the mutation has not been tested genetically.

molecularMutationTypeName

String

The type of the molecular lesion associated with the mutation.

mutationQcResults[]

Array

Array containing the results of QC tests carried out on the mutation.

mutationQcResults[].id

Number

Internal identifier. READ ONLY AND SUBJECT TO CHANGE.

mutationQcResults[].qcTypeName

String

Type of Mutation QC carried out.

mutationQcResults[].statusName

String

Status of the Mutation QC.

mutationSequences[]

Array

Array containing a collection of sequences that characterise the mutation.

mutationSequences[].id

Number

Internal identifier. READ ONLY AND SUBJECT TO CHANGE

mutationSequences[].index

Number

Index used to order the sequences.

mutationSequences[].sequence

Object

An object describing the sequence.

mutationSequences[].sequence.id

Number

Internal identifier. READ ONLY AND SUBJECT TO CHANGE

mutationSequences[].sequence.sequence

String

A sequence in FASTA format.

mutationSequences[].sequence.typeName

String

The type of sequence.

Possible values:

- complete

- partial

- 5_prime_end

- 3_prime_end

mutationSequences[].sequence.categoryName

String

The category assigned to the sequence.

Possible values:

- intention target sequence

- original starting sequence

- outcome sequence

A mutation should always be specified as 'outcome sequence'.

description

String

Mutation description note.

qcNote

String

Mutation Qc note.

mutationCategorizations[]

Array

A list classifying the mutation.

mutationCategorizations[].name

String

A label describing the mutation.

mutationCategorizations[].description

String

A longer description of this category.

mutationCategorizations[].typeName

String

A broader classification of the description.

Possible values are:

- allele_category

- repair_mechanism

genes[]

Array

List of genes associated with the mutation.

genes[].id

Number

An internal identifier for the gene. READ ONLY AND SUBJECT TO CHANGE

genes[].name

String

The name of the gene.

genes[].symbol

String

The valid symbol for the gene.

genes[].speciesName

String

The species related to the gene.

genes[].externalLink

String

An external link with more information about the gene.

genes[].accessionId

String

The accession identifier for the gene.

_links.self.href

String

Link to the mutation.

_links.outcomes[].href

String

Outcomes associated with the mutation.

8.2. GET

8.2.1. Get a specific mutation

This endpoint fetches a specific mutation associated with an outcome.

Example Request

Curl:

$ curl 'http://localhost:8080/api/plans/PIN:0000000001/outcomes/TPO:000000000002/mutations/MIN:000000000002' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6IlJGZURONmRldUVXQ2xPQlJ3N3JLblEiLCJpYXQiOjE3MDg0NDE2NTgsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQ1OH0.NYxrWVkOhvKDqw1vnIn4VpJIiP4XP5-ZNjDYuQ__6StMQp6Aa9HOg6-ZuladIRAdRanfZdLVCb1Wka5qJdk7DMaAGkxmBw86sMfMYcr5DNxIY8aOEjAL0T1qPrybrPqJqg0cvxz2Gvq7DfdNtNZg_fY6wZcZGgHT1Djn35_8JgFOnAs51UAYZiu_tVE_4og0oMWbU0DgQCQJpT654fdAYMXSXuhsB9y83UA5UVcAIusRVatZj9SatXgqMxje2VY7rZB6CwycqDffOfptG97wig8LEIgGIe3nf6ADyHYLG3cRBFKnCpWtG-5nKAEOYm_joOFn-D2jAWBbUlFetqe0hw'
Example Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/hal+json
Content-Length: 1504

{
  "id" : 2,
  "min" : "MIN:000000000002",
  "mgiAlleleId" : "MGI:6342258",
  "mgiAlleleSymbolWithoutImpcAbbreviation" : false,
  "symbol" : "em1(IMPC)J",
  "description" : "",
  "qcNote" : "",
  "mgiAlleleSymbolRequiresConstruction" : true,
  "geneticMutationTypeName" : "Not Tested",
  "molecularMutationTypeName" : "Deletion",
  "mutationQcResults" : [ {
    "id" : 1,
    "qcTypeName" : "mutant_specific_sr_pcr",
    "statusName" : "pass"
  } ],
  "mutationSequences" : [ {
    "id" : 2,
    "index" : 1,
    "sequence" : {
      "id" : 1,
      "sequence" : ">Otog TGGGACTAGGTCACAGACAGAAAAAGGGGGATGAGAAGGCCTTAGATCTAAGGGAGGTAAAGAGAGAATTAACCACAGGAATTAGCACACTGAAGGATCGTGCTCGCCAGACCTCAAACCATCTCCTTCTTGCGTCATGAGAAAGCCTTGACCCATCATTTTCCAGTTTTCTGTGTTCTTGCCCCACTTTGGCCCCTGGATCCTGGGATCTCCCCAGAAATTCTTACCTAGCCCC",
      "typeName" : "complete",
      "categoryName" : "outcome sequence"
    }
  } ],
  "mutationCategorizations" : [ {
    "name" : "NHEJ",
    "description" : "non-homology end-joining",
    "typeName" : "repair_mechanism"
  } ],
  "_links" : {
    "self" : {
      "href" : "http://localhost:8080/api/mutations/MIN:000000000002"
    },
    "outcomes" : [ {
      "href" : "http://localhost:8080/api/plans/PIN:0000000001/outcomes/TPO:000000000002"
    } ]
  },
  "genes" : [ {
    "id" : 2,
    "symbol" : "Otog",
    "speciesName" : "Mus musculus",
    "accessionId" : "MGI:1202064",
    "name" : "otogelin",
    "externalLink" : "http://www.mousephenotype.org/data/genes/MGI:1202064"
  } ]
}

8.2.2. Get history for a specific mutation

This endpoint fetches the history of a specific mutation associated with an outcome.

Example Request

Curl:

$ curl 'http://localhost:8080/api/plans/PIN:0000000001/outcomes/TPO:000000000002/mutations/MIN:000000000002/history' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6Imw3cTdocThxOFp0NmFvaWZGRF9hY3ciLCJpYXQiOjE3MDg0NDE2NTksInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQ1OX0.eqewfB1Jh5aKnr7QIarMQ7zNud62hdVAt-w4BJacAMdayN3Ovrv01pAi1gHhf_qMAj6rNcVY48lHrIpJB5U26TnCBVWL6t3R7_eGxSQguJ88H8Kgb0YC_CBDGvPYYj2qZH4waXjBkhDRc8OFplfnl4qe-B7LrbTj5O2FRHlV04xLXPe77bLVo0yR3mZtNYhSdZ4vf1AHHeF4mUeyRhzWV9gjGaDmxlRdJioWPrMj9PBTwf5UkmxEkxfy0XXxJFUtvJK4mrlkRpU37QzUlh7GVHcN50jl0dhiy8Ux2P7RAN31iEyag9kX0wME8qsI5SKmuiY6wwnspVEZxdWlSEi4oA'
Example Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
Content-Length: 290

[ {
  "id" : 1,
  "user" : "gentar_test_user1@gentar.org",
  "date" : "2020-06-17T15:08:56.643268",
  "comment" : "Mutation updated",
  "details" : [ {
    "field" : "geneticMutationTypeName",
    "oldValue" : "Dominant",
    "newValue" : "Recessive",
    "note" : "Field changed"
  } ]
} ]

8.3. POST

A mutation is created as part of an outcome, see Create an outcome (colony), rather than as a POST request to a mutation endpoint.

8.4. PUT

8.4.1. Update a mutation

This endpoint allows the modification of an existing mutation.

Example Request

Curl:

$ curl 'http://localhost:8080/api/plans/PIN:0000000001/outcomes/TPO:000000000002/mutations/MIN:000000000002/' -i -X PUT \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6Ik9HTmx3Q2pUclE5RWZCeVBVazh6QVEiLCJpYXQiOjE3MDg0NDE2NTksInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQ1OX0.SrGGg-cpy8a1CPbM_eNfftlfDMtsIqHmx384ekqPrtbrHuRggLTLsR6LGWuwLY6lGWHqHNo6BinWypsijAFa0cXmMsLYcuXUiOeVLpsFGgIbUGLq05XVBbIMFNbKdtW3X1sVJ59fGN_D7-BJl4KWBWmw8aV9peyQQ-_VC5_iTsan1xvdFu1EyuZ_hRwy3H3JIY0yOla5bPs_lQOBdYAf-gAWgV3bqllxR0yiRE6zuaR4jGKswd6pzhSEN_rMNO3EW9-SrpaCDw-CkKJ5ZygP4W6zpv2uJ6Bvm7IAGV99fOEPZkWw9_YLRk3i5C1tE0etaQAQQOiiXnWupVeaoP8Bdg' \
    -d '{
  "min" : "MIN:000000000002",
  "mgiAlleleId" : "MGI:6342258",
  "symbol" : "Otog<em1(IMPC)Bcm>",
  "mgiAlleleSymbolWithoutImpcAbbreviation" : false,
  "mgiAlleleSymbolRequiresConstruction" : true,
  "geneticMutationTypeName" : "Null",
  "molecularMutationTypeName" : "Point Mutation",
  "mutationQcResults" : [ {
    "id" : 1,
    "qcTypeName" : "mutant_specific_sr_pcr",
    "statusName" : "pass"
  }, {
    "id" : null,
    "qcTypeName" : "loxp_screen",
    "statusName" : "fail"
  } ],
  "mutationSequences" : [ {
    "id" : 2,
    "index" : 1,
    "sequence" : {
      "id" : 1,
      "sequence" : ">Otog \nTGGGACTAGGTCACAGACAGAAAAAGGGGGATGAGAAGGCCTTAGATCTAAGGGAGGTAAAGAGAGAATTAACCACAGGAATTAGCACACTGAAGGATCGTGCTCGCCAGACCTCAAACCATCTCCTTCTTGCGTCATGAGAAAGCCTTGACCCATCATTTTCCAGTTTTCTGTGTTCTTGCCCCACTTTGGCCCCTGGATCCTGGGATCTCCCCAGAAATTCTTACCTAGCCCC",
      "typeName" : "complete",
      "categoryName" : "outcome sequence"
    }
  } ],
  "description" : "Otog<em1(IMPC)Bcm>:\\r\\nThis allele was generated at The Jackson Laboratory by electroporating Cas9 protein and 2 guide sequences CTTCACGTACCAAGGAGGGG and TCTTGCTTCCTACTTCCAGT, which resulted in a 520 bp deletion beginning at Chromosome 7 position 46,245,130 bp and ending after 46,245,649 bp (GRCm38/mm10). This mutation deletes ENSMUSE00000204147 (exon 4) and 444 bp of flanking intronic sequence including the splice acceptor and donor and is predicted to cause a change of amino acid sequence after residue 71 and early truncation 34 amino acids later. \\r\\n\\r\\n\\r\\n",
  "qcNote" : "",
  "mutationCategorizations" : [ {
    "name" : "NHEJ",
    "description" : "non-homology end-joining",
    "typeName" : "repair_mechanism"
  }, {
    "name" : "HR",
    "typeName" : "repair_mechanism"
  } ],
  "_links" : {
    "outcomes" : {
      "href" : "http://localhost:8080/api/plans/PIN:0000000001/outcomes/TPO:000000000002"
    }
  },
  "genes" : [ {
    "symbol" : "Otog"
  } ]
}'
Example Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/hal+json
Content-Length: 4236

{
  "_links" : {
    "self" : {
      "href" : "http://localhost:8080/api/plans/PIN:0000000001/outcomes/TPO:000000000002/mutations/MIN:000000000002"
    }
  },
  "history" : [ {
    "id" : 1,
    "user" : "gentar_test_user1@gentar.org",
    "date" : "2024-02-20T15:07:40.051579146",
    "comment" : "Mutation updated",
    "details" : [ {
      "field" : "description",
      "oldValue" : "",
      "newValue" : "Otog<em1(IMPC)Bcm>:\\r\\nThis allele was generated at The Jackson Laboratory by electroporating Cas9 protein and 2 guide sequences CTTCACGTACCAAGGAGGGG and TCTTGCTTCCTACTTCCAGT, which resulted in a 520 bp deletion beginning at Chromosome 7 position 46,245,130 bp and ending after 46,245,649 bp (GRCm38/mm10). This mutation deletes ENSMUSE00000204147 (exon 4) and 444 bp of flanking intronic sequence including the splice acceptor and donor and is predicted to cause a change of amino acid sequence after residue 71 and early truncation 34 amino acids later. \\r\\n\\r\\n\\r\\n",
      "note" : "Field changed"
    }, {
      "field" : "geneticMutationType.name",
      "oldValue" : "Not Tested",
      "newValue" : "Null",
      "note" : "Field changed"
    }, {
      "field" : "molecularMutationType.name",
      "oldValue" : "Deletion",
      "newValue" : "Point Mutation",
      "note" : "Field changed"
    }, {
      "field" : "mutationCategorizations.[9]",
      "oldValue" : null,
      "newValue" : "id:9, name:HR, description: null, mutationCategorizationTypeName:repair_mechanism",
      "note" : "Element added"
    }, {
      "field" : "mutationCategorizations.[9].mutationCategorizationType.name",
      "oldValue" : null,
      "newValue" : "repair_mechanism",
      "note" : "Field changed"
    }, {
      "field" : "mutationCategorizations.[9].name",
      "oldValue" : null,
      "newValue" : "HR",
      "note" : "Field changed"
    }, {
      "field" : "mutationQcResults.[id:null, QC type name:loxp_screen, QC status:fail]",
      "oldValue" : null,
      "newValue" : "id:null, QC type name:loxp_screen, QC status:fail",
      "note" : "Element added"
    }, {
      "field" : "mutationQcResults.[id:null, QC type name:loxp_screen, QC status:fail].qcType.name",
      "oldValue" : null,
      "newValue" : "loxp_screen",
      "note" : "Field changed"
    }, {
      "field" : "mutationQcResults.[id:null, QC type name:loxp_screen, QC status:fail].status.name",
      "oldValue" : null,
      "newValue" : "fail",
      "note" : "Field changed"
    }, {
      "field" : "mutationSequences.[2]",
      "oldValue" : "MutationSequence(id=2, sequence=Sequence(id=1, sequence=>Otog TGGGACTAGGTCACAGACAGAAAAAGGGGGATGAGAAGGCCTTAGATCTAAGGGAGGTAAAGAGAGAATTAACCACAGGAATTAGCACACTGAAGGATCGTGCTCGCCAGACCTCAAACCATCTCCTTCTTGCGTCATGAGAAAGCCTTGACCCATCATTTTCCAGTTTTCTGTGTTCTTGCCCCACTTTGGCCCCTGGATCCTGGGATCTCCCCAGAAATTCTTACCTAGCCCC, sequenceType=SequenceType(id=1, name=complete), sequenceCategory=SequenceCategory(id=3, name=outcome sequence)), index=1)",
      "newValue" : "MutationSequence(id=2, sequence=Sequence(id=1, sequence=>Otog \nTGGGACTAGGTCACAGACAGAAAAAGGGGGATGAGAAGGCCTTAGATCTAAGGGAGGTAAAGAGAGAATTAACCACAGGAATTAGCACACTGAAGGATCGTGCTCGCCAGACCTCAAACCATCTCCTTCTTGCGTCATGAGAAAGCCTTGACCCATCATTTTCCAGTTTTCTGTGTTCTTGCCCCACTTTGGCCCCTGGATCCTGGGATCTCCCCAGAAATTCTTACCTAGCCCC, sequenceType=SequenceType(id=1, name=complete), sequenceCategory=SequenceCategory(id=3, name=outcome sequence)), index=1)",
      "note" : "Element changed"
    }, {
      "field" : "mutationSequences.[2].sequence.sequence",
      "oldValue" : ">Otog TGGGACTAGGTCACAGACAGAAAAAGGGGGATGAGAAGGCCTTAGATCTAAGGGAGGTAAAGAGAGAATTAACCACAGGAATTAGCACACTGAAGGATCGTGCTCGCCAGACCTCAAACCATCTCCTTCTTGCGTCATGAGAAAGCCTTGACCCATCATTTTCCAGTTTTCTGTGTTCTTGCCCCACTTTGGCCCCTGGATCCTGGGATCTCCCCAGAAATTCTTACCTAGCCCC",
      "newValue" : ">Otog \nTGGGACTAGGTCACAGACAGAAAAAGGGGGATGAGAAGGCCTTAGATCTAAGGGAGGTAAAGAGAGAATTAACCACAGGAATTAGCACACTGAAGGATCGTGCTCGCCAGACCTCAAACCATCTCCTTCTTGCGTCATGAGAAAGCCTTGACCCATCATTTTCCAGTTTTCTGTGTTCTTGCCCCACTTTGGCCCCTGGATCCTGGGATCTCCCCAGAAATTCTTACCTAGCCCC",
      "note" : "Field changed"
    }, {
      "field" : "symbol",
      "oldValue" : "em1(IMPC)J",
      "newValue" : "Otog<em1(IMPC)Bcm>",
      "note" : "Field changed"
    } ]
  } ]
}

9. Phenotyping Stages

This section describes the REST endpoints for phenotyping stages in the system.

Fields

These are the fields you are going to see in the body of a request in a GET or in the payload for POST or PUT operations.

Path Type Description

pin

String

Public identifier for the phenotyping plan.

psn

String

Public identifier for the phenotyping stage.

statusName

String

Current status of the phenotyping stage.

phenotypingTypeName

String

Phenotyping attempt type.

phenotypingExternalRef

String

Colony name or Specimen Group name.

phenotypingExperimentsStarted

String

Date when the phenotyping experiments started.

initialDataReleaseDate

String

Date when some data for the line becomes public. This is set by the CDA

tissueDistributions[]

Array

Tissue distribution available.

tissueDistributions[].id

Number

Id of the record in the system.

tissueDistributions[].startDate

String

Tissue distribution starting date.

tissueDistributions[].endDate

String

Tissue distribution ending date.

tissueDistributions[].workUnitName

String

Work unit responsible for the distribution.

tissueDistributions[].materialDepositedTypeName

String

Type of tissue available.

statusDates[]

Array

Stamps of the statuses the phenotyping stage has gone through.

statusDates[].statusName

String

Status name.

statusDates[].date

String

Date when the status record was saved in the system

statusTransition

Object

Information about the current state in the state machine for the phenotyping stage.

statusTransition.currentStatus

String

Current status in the phenotyping stage.

statusTransition.transitions[]

Array

Transitions in the state machine given the current state.

statusTransition.transitions[].action

String

Action or transition’s name.

statusTransition.transitions[].description

String

Transition’s description.

statusTransition.transitions[].triggeredByUser

Boolean

Indicates whether the transition is executed by the user or by the system.

statusTransition.transitions[].available

Boolean

Indicates if the transition can be executed at the moment.

statusTransition.transitions[].note

String

Additional explanation about the availability to execute the transition.

statusTransition.transitions[].nextStatus

String

Next status that the plan will have if the transition is executed.

statusTransition.actionToExecute

Null

Name of the transition (action) to execute.

_links.self.href

String

Link to the phenotyping stage.

_links.plan.href

String

Link to the plan.

9.1. GET

9.1.1. Get a specific phenotyping stage

This endpoint fetches a specific phenotyping stage belonging to a plan.

Example Request

Curl:

$ curl 'http://localhost:8080/api/plans/PIN:0000000001/phenotypingStages/PSN:000000000001' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6IksxRllONE10OFZkakZiUlJoVTBCdFEiLCJpYXQiOjE3MDg0NDE2NDgsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQ0OH0.lqrXipj1t8XGNA_UwvMQ6FIvgq3T8tW0H630R13UR34aM6UXAgEX5y8rb3_ulOR8ZSiAXiQ8ReKBUVt_v1ICXvJciU9TzAUh76wbs0BHux2MR_7RPvfiewVojYb-nT1lVvAp7njtuKqZUxroTuku_ypmpQ9ewYW8VAHY9PV3NfzvcolpztKRF1zcyppkaTYnt9m5coL-Prd55oQ3KbDkJPWhXa68W1SDI9gbk-ilDUMG3_8PBlTAnODH1WtOo4Z1BoCj2v8xrm7PqAxbPI-uvqf4s79RSzNuR1OCYuR4UMhZnxs4vSYiELq-olNpFoUCbDMf_dqBZI_-VaehXUfkmA'
Example Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/hal+json
Content-Length: 1714

{
  "pin" : "PIN:0000000001",
  "psn" : "PSN:000000000001",
  "statusName" : "Phenotyping Started",
  "phenotypingTypeName" : "early adult and embryo",
  "phenotypingExternalRef" : "CR10129",
  "phenotypingExperimentsStarted" : "2020-02-24",
  "initialDataReleaseDate" : "2015-11-23",
  "tissueDistributions" : [ {
    "id" : 1,
    "startDate" : "2020-04-13",
    "endDate" : "2021-05-15",
    "workUnitName" : "TCP",
    "materialDepositedTypeName" : "Paraffin-embedded Sections"
  } ],
  "_links" : {
    "self" : {
      "href" : "http://localhost:8080/api/plans/PIN:0000000001/phenotypingStages/PSN:000000000001"
    },
    "plan" : {
      "href" : "http://localhost:8080/api/plans/PIN:0000000001"
    }
  },
  "statusDates" : [ {
    "statusName" : "Phenotyping Registered",
    "date" : "2019-11-01T00:00:00"
  }, {
    "statusName" : "Phenotyping Started",
    "date" : "2019-11-02T00:00:00"
  } ],
  "statusTransition" : {
    "currentStatus" : "Phenotyping Started",
    "transitions" : [ {
      "action" : "updateToPhenotypingAllDataSent",
      "description" : "No more phenotype data will be sent to the DCC.",
      "triggeredByUser" : true,
      "available" : true,
      "note" : "Used to indicate all phenotype data has been sent to the DCC.",
      "nextStatus" : "Phenotyping All Data Sent"
    }, {
      "action" : "rollbackPhenotypingStarted",
      "description" : "Rollback the state of phenotyping marked as having phenotyping started.",
      "triggeredByUser" : true,
      "available" : false,
      "note" : "The current user does not have permission to rollback to 'Phenotyping Registered'",
      "nextStatus" : "Phenotyping Registered"
    } ],
    "actionToExecute" : null
  }
}

9.1.2. Get all phenotyping stages in a plan

This endpoint shows all the phenotyping stages associated to a plan.

Example Request

Curl:

$ curl 'http://localhost:8080/api/plans/PIN:0000000001/phenotypingStages' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6IlFUMzVYbDhTWDltU2V3TXZ6U3JWd1EiLCJpYXQiOjE3MDg0NDE2NDgsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQ0OH0.BsvZjWRVhQUEFjQQgZSIBzZur8uoGqUbfXRqzirZExEMpYHq2TI7Sulwz7bqNXYRlahKnrWW8a2_PezvpUy93FuK0S7vsVZnMuciCMW0y79Q1mL17PZEw2Z6nkP4GhtWxvroVFbTp6z_x1Xp4hljHsmNuCUJF-o7qH2F5zrFGl397yZjovLSV1lUfgMwOnPNLGujrGbT5Tfa99jPqXjXvt5vWbk2KApc1q2EK4ct47Z1hhqoQ9IOoQdIRHFSHH-OGLSccsZ3ZqBgptdOG042H0DFJqFCGHqA5asIoHLAYWN4TlP8PqvJ_CV2LTg6LTUi1oCh13U9mR0SSN6oIanxXA'
Example Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/hal+json
Content-Length: 4057

{
  "_embedded" : {
    "phenotypingStages" : [ {
      "pin" : "PIN:0000000001",
      "psn" : "PSN:000000000001",
      "statusName" : "Phenotyping Started",
      "phenotypingTypeName" : "early adult and embryo",
      "phenotypingExternalRef" : "CR10129",
      "phenotypingExperimentsStarted" : "2020-02-24",
      "initialDataReleaseDate" : "2015-11-23",
      "tissueDistributions" : [ {
        "id" : 1,
        "startDate" : "2020-04-13",
        "endDate" : "2021-05-15",
        "workUnitName" : "TCP",
        "materialDepositedTypeName" : "Paraffin-embedded Sections"
      } ],
      "_links" : {
        "self" : {
          "href" : "http://localhost:8080/api/plans/PIN:0000000001/phenotypingStages/PSN:000000000001"
        },
        "plan" : {
          "href" : "http://localhost:8080/api/plans/PIN:0000000001"
        }
      },
      "statusDates" : [ {
        "statusName" : "Phenotyping Registered",
        "date" : "2019-11-01T00:00:00"
      }, {
        "statusName" : "Phenotyping Started",
        "date" : "2019-11-02T00:00:00"
      } ],
      "statusTransition" : {
        "currentStatus" : "Phenotyping Started",
        "transitions" : [ {
          "action" : "updateToPhenotypingAllDataSent",
          "description" : "No more phenotype data will be sent to the DCC.",
          "triggeredByUser" : true,
          "available" : true,
          "note" : "Used to indicate all phenotype data has been sent to the DCC.",
          "nextStatus" : "Phenotyping All Data Sent"
        }, {
          "action" : "rollbackPhenotypingStarted",
          "description" : "Rollback the state of phenotyping marked as having phenotyping started.",
          "triggeredByUser" : true,
          "available" : false,
          "note" : "The current user does not have permission to rollback to 'Phenotyping Registered'",
          "nextStatus" : "Phenotyping Registered"
        } ],
        "actionToExecute" : null
      }
    }, {
      "pin" : "PIN:0000000001",
      "psn" : "PSN:000000000002",
      "statusName" : "Late Adult Phenotyping Registered",
      "phenotypingTypeName" : "late adult",
      "phenotypingExternalRef" : "CR10129",
      "phenotypingExperimentsStarted" : "2018-09-17",
      "initialDataReleaseDate" : "2019-04-12",
      "tissueDistributions" : [ {
        "id" : 2,
        "startDate" : "2019-04-13",
        "endDate" : "2020-05-15",
        "workUnitName" : "UCD",
        "materialDepositedTypeName" : "Fixed Tissue"
      } ],
      "_links" : {
        "self" : {
          "href" : "http://localhost:8080/api/plans/PIN:0000000001/phenotypingStages/PSN:000000000002"
        },
        "plan" : {
          "href" : "http://localhost:8080/api/plans/PIN:0000000001"
        }
      },
      "statusDates" : [ {
        "statusName" : "Late Adult Phenotyping Registered",
        "date" : "2018-09-27T00:00:00"
      } ],
      "statusTransition" : {
        "currentStatus" : "Late Adult Phenotyping Registered",
        "transitions" : [ {
          "action" : "updateToRederivationStarted",
          "description" : "Started rederivation of the colony for phenotyping",
          "triggeredByUser" : true,
          "available" : true,
          "note" : "executed by the user when rederivation is started.",
          "nextStatus" : "Rederivation Started"
        }, {
          "action" : "updateToPhenotypingStarted",
          "description" : "Marked as started when the DCC receives phenotype data",
          "triggeredByUser" : true,
          "available" : false,
          "note" : "The current user does not have permission to move to 'Phenotyping Started'",
          "nextStatus" : "Phenotyping Started"
        }, {
          "action" : "abortWhenPhenotypeRegistered",
          "description" : "Abort phenotyping when a phenotype attempt has been registered",
          "triggeredByUser" : true,
          "available" : true,
          "note" : null,
          "nextStatus" : "Phenotype Production Aborted"
        } ],
        "actionToExecute" : null
      }
    } ]
  }
}

9.1.3. Get the history of changes for a phenotyping stage

You can use this endpoint to see all the changes that have been made on a phenotyping stage.

Example Request

Curl:

$ curl 'http://localhost:8080/api/plans/PIN:0000000001/phenotypingStages/PSN:000000000002/history' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6ImJ3anRTUHB6eERRVG1VcXVia1NhRkEiLCJpYXQiOjE3MDg0NDE2NDksInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQ0OX0.C1bKUZYs5_iIdCvl14yVRZW8TgcQgo0tML29OmJiTioWTiMBIc9uXA3iNP5hBclLJ_rPg3kvq10jm_1mBbDkc8kpnp15FWrRqvULxOJXJlBtCGu7i-mi_xDpGICeKYDCdKCgZdUcgZh8cbz22cOW5g_A9u3kZxogQLnTfCghqg5DrEIAH5vdtjL8b4_8EjK8X3mangwapagr5qARSoDqVgWNqvE-irfc1w36vn0M8BiHy6VoA5s2AH9_LPqKzww1dPJgV8R4JWwmiWXd2chPNB8u6c6Ubs95v9GTkwzF5dlDmgMmRSc5UtOBOBX4CYvTJEKa9FenXW9UOMNQU989EQ'
Example Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
Content-Length: 309

[ {
  "id" : 1,
  "user" : "gentar_test_user1@gentar.org",
  "date" : "2020-06-17T15:08:56.643268",
  "comment" : "PhenotypingStage updated",
  "details" : [ {
    "field" : "phenotyping_experiments_started",
    "oldValue" : "2020-02-24",
    "newValue" : "2020-04-02",
    "note" : "Field changed"
  } ]
} ]

9.2. POST

9.2.1. Create a phenotyping stage

Example Request

Curl:

POST /api/plans/PIN:0000000002/phenotypingStages/ HTTP/1.1
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6InlsT3VyS2FDcll2dDFnOFRRSWZBLVEiLCJpYXQiOjE3MDg0NDE2NDcsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQ0N30.j9D9cqHN5LxHx1VgmgMoc0fHc26z-xzhwH2PmgVEQjdSp1ooJRhrAA_drTKcMPjgZZxcPktPBzRxG4Sb4vmNTfFRv7Q5r5FdzSUCOAhh-Bxp3pWJhYPmOSGhm9U9q1YCzSq3d1bY012q569IopLXoSNF9x-mNgKLuBgyovkSEQHYVkBFnSGVn1OHnvWdH4GdC8h0iAmvJLx-IjKo1JENfBaMAteBBpmA6lxE0L_VWYh2TzYkVFBRcnehpEkxQgm58skDbEbCp0GnT0qxkGfbNOHD3mWkbXkjP-Tcz11gi83sU9UtLsIrT9H-u45pDavUoyDADRN6I115oTB3q-0pXQ
Content-Length: 377
Host: localhost:8080

{
  "phenotypingTypeName" : "early adult and embryo",
  "phenotypingExternalRef" : "JR34077",
  "phenotypingExperimentsStarted" : "2020-02-24",
  "initialDataReleaseDate" : "2015-11-23",
  "tissueDistributions" : [ {
    "startDate" : "2020-04-13",
    "endDate" : "2021-05-15",
    "workUnitName" : "TCP",
    "materialDepositedTypeName" : "Paraffin-embedded Sections"
  } ]
}
Example Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/hal+json
Content-Length: 336

{
  "_links" : {
    "self" : {
      "href" : "http://localhost:8080/api/plans/PIN:0000000002/phenotypingStages/PSN:000000000004"
    }
  },
  "history" : [ {
    "id" : 1,
    "user" : "gentar_test_user1@gentar.org",
    "date" : "2024-02-20T15:07:27.869827177",
    "comment" : "PhenotypingStage created",
    "details" : [ ]
  } ]
}

9.3. PUT

9.3.1. Update a phenotyping stage

Example Request

Curl:

PUT /api/plans/PIN:0000000001/phenotypingStages/PSN:000000000001/ HTTP/1.1
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6InVGeEo2dHV5X3gyOVRDaWRXbFpLZUEiLCJpYXQiOjE3MDg0NDE2NDksInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQ0OX0.RJBEOu60ydzm-ba56IWbQWJMw2YSF3uH1FvHhFyaK1GTTKun9PHrh3iYOWo000nZUW6LRsVlTzHM6zx8TwV4YvxLY759DojovXHIJcOn4mGxg9S6PJnSFFi2xDRAuZrGiPlI2SADV48Ckl_FP4h9PKkUjX0tRmB6Nu8wKcSUpvBWlbtl9NAMVHkygaWylTJhEuCS8y0uwSClJXXRPBXrN_FV8gOXXG4NUeiZ1ERv_IgmXMdiKzhpxfQ8xyGeX5bY4yHPD3-dM1mDuN3QMY8R3Y3Rkxp1voEFuYuHFsIZYebNKGqsdn390miQjHs7SWPo7TShD1SRWYYa10sCvq2_5g
Content-Length: 428
Host: localhost:8080

{
  "psn" : "PSN:000000000001",
  "phenotypingExternalRef" : "CR10129",
  "phenotypingExperimentsStarted" : "2020-04-02",
  "initialDataReleaseDate" : "2015-11-23",
  "tissueDistributions" : [ {
    "id" : 1,
    "startDate" : "2020-04-13",
    "endDate" : "2021-05-15",
    "workUnitName" : "TCP",
    "materialDepositedTypeName" : "Paraffin-embedded Sections"
  } ],
  "statusTransition" : {
    "actionToExecute" : null
  }
}
Example Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/hal+json
Content-Length: 490

{
  "_links" : {
    "self" : {
      "href" : "http://localhost:8080/api/plans/PIN:0000000001/phenotypingStages/PSN:000000000001"
    }
  },
  "history" : [ {
    "id" : 1,
    "user" : "gentar_test_user1@gentar.org",
    "date" : "2024-02-20T15:07:29.519682646",
    "comment" : "PhenotypingStage updated",
    "details" : [ {
      "field" : "phenotypingExperimentsStarted",
      "oldValue" : "2020-02-24",
      "newValue" : "2020-04-02",
      "note" : "Field changed"
    } ]
  } ]
}

10. State Machine interaction

10.1. Structure

Several entities in GenTaR rely on a state machine to control the logic to change from one status to another. The state machines for these entities are described in the following document.

When you make a GET request to one of those entities, as part of the response you will receive a statusTransition section, which contains information about the current status and what actions can be executed in order to change that status.

"statusTransition" : {
    "currentStatus" : "Founder Obtained",
    "transitions" : [ {
    "action" : "abortWhenFounderObtained",
    "description" : "Abort the plan after a founder obtained",
    "triggeredByUser" : true,
    "available" : true,
    "note" : null,
    "nextStatus" : "AttemptAborted"
    } ],
    "actionToExecute" : null
Path Type Description

statusTransition

Object

Information about the current state in the state machine for the plan.

statusTransition.currentStatus

String

Current status in the plan

statusTransition.transitions[]

Array

Transitions in the state machine given the current state.

statusTransition.transitions[].action

String

Action or transition’s name.

statusTransition.transitions[].description

String

Transition’s description.

statusTransition.transitions[].triggeredByUser

Boolean

Indicates whether the transition is executed by the user or by the system.

statusTransition.transitions[].available

Boolean

Indicates if the transition can be executed at the moment.

statusTransition.transitions[].note

Null

Additional explanation about the availability to execute the transition.

statusTransition.transitions[].nextStatus

String

Next status that the plan will have if the transition is executed.

statusTransition.actionToExecute

Null

Name of the transition (action) to execute.

10.2. Executing a change in the state machine

To execute a transition in the plan, you need to choose an action that is triggeredByUser = true and available = true and send a PUT request (as a normal plan update ) passing the name of the action as the value actionToExecute in the statusTransition section of the payload.

10.2.1. Example Request

Let’s suppose you want to abort a crispr plan that has the status Founder Obtained. If we do a GET to the plan we want to abort, you will see the statusTransition section with a single available transition executable by the user: abortWhenFounderObtained.

Use the name of the action (abortWhenFounderObtained) as the value in the field actionToExecute.

You can use the whole GET response as the payload for the new operation. You can also decide to send only the statusTransition information in the payload. The following is an example of a request where you decide to leave out the attempt information:

Curl:

PUT /api/plans/PIN:0000000222 HTTP/1.1
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6InhRc3FvejZVem15cXVrVVdKcVVXWUEiLCJpYXQiOjE3MDg0NDE2NDQsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQ0NH0.MmxtGjkEfzy128ZDAb37kXuDVdZCmS5JgDkIVUS0_Chi22g229f2frSHn_G8sG5qiMHoL-my5iWeQW7sdL1D6dthHLWEfiVapMgOAdebEYnUOpMNoZH3q-bMTe0aM0G7xL04g4DwRzTYnxnm7UZMVgnvyivXJU9Mv60iosctUTLbg2HaFL8f30Unuy-XAtFlgN0yeM0VlJejkLsckCF5HIaDP5ULj71WYi8Iqz_dLVvZzGmi7t2jMvmktbayU_tPDMrQWoa7yLFy-enTgKXsdx2MhWhJIkpQkMjbhIMPWuG7w4idEVTnYvWXdn1NGH9m9LiAliCuyzv2RfNsJKhgEw
Content-Length: 351
Host: localhost:8080

{
  "pin" : "PIN:0000000222",
  "tpn" : "TPN:000000222",
  "attemptTypeName" : "crispr",
  "funderNames" : [ "KOMP2" ],
  "workUnitName" : "UCD",
  "workGroupName" : "DTCC",
  "comment" : "Plan aborted",
  "typeName" : "production",
  "statusName" : "Founder Obtained",
  "statusTransition" : {
    "actionToExecute" : "abortWhenFounderObtained"
  }
}

10.2.2. Example Response

The response will indicate what has changed in the system, along with a link to the resource in case you need to retrieve the new object.

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/hal+json
Content-Length: 718

{
  "_links" : {
    "self" : {
      "href" : "http://localhost:8080/api/plans/PIN:0000000222"
    }
  },
  "history" : [ {
    "id" : 1,
    "user" : "gentar_test_user1@gentar.org",
    "date" : "2024-02-20T15:07:24.210335415",
    "comment" : "Plan updated",
    "details" : [ {
      "field" : "comment",
      "oldValue" : null,
      "newValue" : "Plan aborted",
      "note" : "Field changed"
    }, {
      "field" : "status.name",
      "oldValue" : "Founder Obtained",
      "newValue" : "Attempt Aborted",
      "note" : "Field changed"
    }, {
      "field" : "summaryStatus.name",
      "oldValue" : "Founder Obtained",
      "newValue" : "Attempt Aborted",
      "note" : "Field changed"
    } ]
  } ]
}

11. Targrep Allele

This section describes the REST endpoints for alleles in the system.

11.1. Fields

These are the fields you are going to see in the body of a request in a GET operations.

Path Type Description

id

Number

Public identifier for the Allele. READ ONLY

assembly

String

Allele Assembly

chromosome

String

Allele Chromosome

strand

Null

Allele Strand

mgi_accession_id

Array

MGI Accession id

cassette

String

Allele Cassette

backbone

String

Allele Backbone

project_design_id

Number

Allele Project Design Id

design_type.name

String

Allele Design Type Name

subtype_description

String

Allele Subtype Description

homology_arm_start

Number

Allele Homology Arm Start

homology_arm_end

Number

Allele Homology Arm End

cassette_start

Number

Allele Cassette Start

cassette_end

Number

Allele Cassette End

loxp_start

Number

Allele Loxp Start

loxp_end

Number

Allele Loxp End

cassette_type

String

Allele Cassette Type

floxed_start_exon

String

Allele Floxed Star Exon

floxed_end_exon

String

Allele Floxed End Exon

design_subtype.name

String

Allele Design Subtype name

_links.self.href

String

Allele Link

11.2. GET

11.2.1. Get all TargRepAlleles

This endpoint shows all the TargRep Alleles the user has permission to see.

Example Request

Curl:

$ curl 'http://localhost:8080/api/targ_rep/alleles' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6IlE5cXI3QjNxaXZJaUY3NWFxT3dzLVEiLCJpYXQiOjE3MDg0NDE2NTIsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQ1Mn0.kZrfAG98OZSYS1ksKahX5ETdvWnW7uGkQ11TytCZtUBdXgGAOS68PL8yOc6nC4iQ-pn1z4qvsftjBLKZ8EjeIDySw3amMS_2vPITDIG-l61ONzo_ghg7uibxcIjrulVk3eF5bfoLSWoA7neVzqhiEdwZ-GemcQcy0a8psnjy5GxKXUAbtFOVDkfxHTBtyqblxl5codZJD1_QkI1K7fEYqyInMYfl4On6Zbc7zkpWy5KXjFvmuCZGPytYFJYKoTTup6uhveykH-G9S2C25RBF1C-ddYnNEZWsmgVBU5qyiyf-UKBWkXLNdrNRis2FwTZp91JWLKxkYt8p3W-a8hPdWQ'
Example Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Link:
Content-Type: application/hal+json
Content-Length: 1156

{
  "_embedded" : {
    "targrep_alleles" : [ {
      "id" : 142,
      "assembly" : "GRCm38",
      "chromosome" : "5",
      "strand" : null,
      "cassette" : "L1L2_Bact_P",
      "backbone" : "L3L4_pD223_DTA_T_spec",
      "_links" : {
        "self" : {
          "href" : "http://localhost:8080/api/targ_rep/alleles/142"
        }
      },
      "project_design_id" : 175471,
      "design_type" : {
        "name" : "Conditional Ready"
      },
      "design_subtype" : {
        "name" : "Frameshift"
      },
      "subtype_description" : "",
      "homology_arm_start" : 24427320,
      "homology_arm_end" : 24416109,
      "cassette_start" : 24421536,
      "cassette_end" : 24421446,
      "loxp_start" : 24420131,
      "loxp_end" : 24420125,
      "mgi_accession_id" : [ "MGI:4432925" ],
      "cassette_type" : "Promotor Driven",
      "floxed_start_exon" : "ENSMUSE00000183967",
      "floxed_end_exon" : "ENSMUSE00000183963"
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "http://localhost:8080/api/targ_rep/alleles"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 1,
    "totalPages" : 1,
    "number" : 0
  }
}

11.2.2. Get spesific TargRepAlleles by Id

This endpoint shows spesific TargRep Allele the user has permission to see.

Example Request

Curl:

$ curl 'http://localhost:8080/api/targ_rep/alleles/142' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6IllydkRNNll2NHR2N3VoY3dzaG54R3ciLCJpYXQiOjE3MDg0NDE2NTIsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQ1Mn0.gUDFeGQt1Zg7XmrX4mHF8gthBaxS2lyLG1y_A-MQ0F1mSNB9wc6LbjkMET4V4Gd4xt9WctzUHQsLdHk8TuwIIKVLUaKnzNDlC17tV-ciebmFJZcnRueSX0tgDTmRKOBBkzX_cFtzDHmJQOQrlui47w6sSXzfPdDmtCfjvf6ZFjDCJNeLf453nibw5uNuS3O8_PoVe6kCjCfXk7mn8NQhw94AWY4WBTCyNYWicygdajF4wp_WFwxyoBdZig8lIWyTV2Haee0rYVQ1P4Fvorr_GlpNxkiPPGBkPxbbMvScTfGVGX8FwNhtFyJWL9lPygmDqNEZpwZXIcvKLt8Z90f_EQ'
Example Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/hal+json
Content-Length: 782

{
  "id" : 142,
  "assembly" : "GRCm38",
  "chromosome" : "5",
  "strand" : null,
  "cassette" : "L1L2_Bact_P",
  "backbone" : "L3L4_pD223_DTA_T_spec",
  "_links" : {
    "self" : {
      "href" : "http://localhost:8080/api/targ_rep/alleles/142"
    }
  },
  "project_design_id" : 175471,
  "design_type" : {
    "name" : "Conditional Ready"
  },
  "design_subtype" : {
    "name" : "Frameshift"
  },
  "subtype_description" : "",
  "homology_arm_start" : 24427320,
  "homology_arm_end" : 24416109,
  "cassette_start" : 24421536,
  "cassette_end" : 24421446,
  "loxp_start" : 24420131,
  "loxp_end" : 24420125,
  "mgi_accession_id" : [ "MGI:4432925" ],
  "cassette_type" : "Promotor Driven",
  "floxed_start_exon" : "ENSMUSE00000183967",
  "floxed_end_exon" : "ENSMUSE00000183963"
}

12. Targrep EsCell

This section describes the REST endpoints for es_cell in the system.

12.1. Fields

These are the fields you are going to see in the body of a request in a GET operations.

Path Type Description

id

Number

Public identifier for the EsCell. READ ONLY

pipelineId

Number

Public identifier for the Pipeline. READ ONLY

alleleId

Number

Public identifier for the Allele. READ ONLY

name

String

EsCell name

targetingVectorId

Number

Public identifier for the Targeting Vector. READ ONLY

parentalCellLine

String

Parental Cell Line

ikmcProjectId

String

Public identifier for the IKMC Project. READ ONLY

mgiAlleleId

Null

Public identifier for the MGI Allele Id. READ ONLY

alleleSymbolSuperscript

Null

Allele Symbol Super Script

comment

String

Comment

contact

Null

no information, always empty

reportToPublic

Boolean

ndicates if EsCell will be reported to public

productionQcFivePrimeScreen

String

Production Qc Five Prime Screen

productionQcLossOfAllele

String

Production Qc Loss Of Allele

productionQcLoxpScreen

String

Production Qc Loxp Screen

productionQcThreePrimeScreen

String

Production Qc Three Prime Screen

productionQcVectorIntegrity

String

Production Qc Vector Integrity

userQcComment

String

User Qc Comment

userQcFivePrimeCassetteIntegrity

String

User Qc Five Prime Cassette Integrity

userQcFivePrimeLrPcr

String

User Qc Five Prime LrPcr

userQcKaryotype

String

User Qc Karyotype

userQcLaczSrPcr

String

User Qc Lacz Sr Pcr

userQcLossOfWtAllele

String

User Qc Loss Of Wt Allele

userQcLoxpConfirmation

String

User Qc Loxp Confirmation

userQcMapTest

String

User Qc Map Test

userQcMutantSpecificSrPcr

String

User Qc Mutant Specific Sr Pcr

userQcNeoCountQpcr

String

User Qc Neo Count Q pcr

userQcNeoSrPcr

String

User Qc Neo Sr Pcr

userQcSouthernBlot

String

User Qc Southern Blot

userQcThreePrimeLrPcr

String

user Qc Three Prime Lr Pcr

userQcTvBackboneAssay

String

user Qc Tv Backbone Assay

targRepDistributionQcList[].id

Number

Distribution Qc Id

targRepDistributionQcList[].karyotypeHigh

Number

Distribution Qc Karyotype High

targRepDistributionQcList[].karyotypeLow

Number

Distribution Qc Karyotype Low

targRepDistributionQcList[].copyNumber

String

Distribution Qc Copy Number

targRepDistributionQcList[].fivePrimeLrPcr

String

Distribution Qc Five Prime Lr Pcr

targRepDistributionQcList[].fivePrimeSrPcr

String

Distribution Qc Five Prime Sr Pcr

targRepDistributionQcList[].thawing

String

Distribution Qc Thawing

targRepDistributionQcList[].threePrimeLrPcr

Null

Distribution Qc Three Prime Lr Pcr

targRepDistributionQcList[].threePrimeSrPcr

String

Distribution Qc Three Prime Sr Pcr

targRepDistributionQcList[].loa

String

Distribution Loa

targRepDistributionQcList[].loxp

String

Distribution Loxp

targRepDistributionQcList[].lacz

String

Distribution Lacz

targRepDistributionQcList[].chr1

String

Distribution Chr1

targRepDistributionQcList[].chr8a

String

Distribution Chr8a

targRepDistributionQcList[].chr8b

String

Distribution Chr8b

targRepDistributionQcList[].chr11a

String

Distribution Chr11a

targRepDistributionQcList[].chr11b

String

Distribution Chr11b

targRepDistributionQcList[].chry

String

Distribution Chry

targRepDistributionQcList[].esCellDistributionCentre.id

Number

es Cell distribution id

targRepDistributionQcList[].esCellDistributionCentre.name

String

es Cell distribution name

targRepEsCellDistributionProductList[]

Array

targRepEsCellDistributionProductList

targRepEsCellDistributionProductList[].distributionNetworkName

String

targRepEsCellDistributionProductList

targRepEsCellDistributionProductList[].startDate

String

Distribution startDate

targRepEsCellDistributionProductList[].endDate

String

Distribution endDate

targRepEsCellDistributionProductList[].distributionIdentifier

String

Distribution Identifier

_links.pipeline[].href

String

Pipeline Self Link

_links.targeting_vector[].href

String

targeting Vector Self Link

_links.allele[].href

String

Allele Self Link

_links.self.href

String

EsCell Self Link

12.2. GET

12.2.1. Get All TargRepEssCell

This endpoint shows the All TargRep Es Cells the user has permission to see.

Example Request

Curl:

$ curl 'http://localhost:8080/api/targ_rep/es_cell' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6IlFQYTJ1UjJiZEgzdDRlTUVKWG1JaFEiLCJpYXQiOjE3MDg0NDE2NTQsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQ1NH0.JIviYcUoJTVeVEWvMKlt-rmvaZt8ijuP4cn_0ryNf_wRJHmjHrGLalCxyRcC6ZXiUU5o1mo8Wvr3XCvY_JH0yWFynNpJ1enXOB7aDPKwU8Vb_mJRCDFQNySAy6fHj6vpfGtuSlgObbdFcaTUvCWwDMSXkCCTrlZm4KdF1GKEcvwJs25G3Dk9wXtaI85gX3NZdshU68fHZPJGcIKd3DLBztdIQ1RaRGlslxdxuk2hs4CeM9B08nQ1P2yp3dGIBnBUYlgnyaB9c1PE5j-7hBZ_f5WJn2cwQlh64ncPoO6wGbaqld_Rg0-0OPyhfrWomGoqTf9AyINnKjesWgrOymoTAg'
Example Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Link:
Content-Type: application/hal+json
Content-Length: 2730

{
  "_embedded" : {
    "targrep_es_cells" : [ {
      "id" : 14210,
      "pipelineId" : 4,
      "alleleId" : 142,
      "name" : "EPD0045_1_A11",
      "targetingVectorId" : 158,
      "parentalCellLine" : "JM8.N4",
      "ikmcProjectId" : "41713",
      "mgiAlleleId" : null,
      "alleleSymbolSuperscript" : null,
      "comment" : "",
      "contact" : null,
      "reportToPublic" : true,
      "productionQcFivePrimeScreen" : "pass",
      "productionQcLossOfAllele" : "pass",
      "productionQcLoxpScreen" : "pass",
      "productionQcThreePrimeScreen" : "not confirmed",
      "productionQcVectorIntegrity" : "pass",
      "userQcComment" : "pass",
      "userQcFivePrimeCassetteIntegrity" : "pass",
      "userQcFivePrimeLrPcr" : "pass",
      "userQcKaryotype" : "pass",
      "userQcLaczSrPcr" : "pass",
      "userQcLossOfWtAllele" : "pass",
      "userQcLoxpConfirmation" : "pass",
      "userQcMapTest" : "pass",
      "userQcMutantSpecificSrPcr" : "pass",
      "userQcNeoCountQpcr" : "pass",
      "userQcNeoSrPcr" : "pass",
      "userQcSouthernBlot" : "pass",
      "userQcThreePrimeLrPcr" : "pass",
      "userQcTvBackboneAssay" : "pass",
      "targRepDistributionQcList" : [ {
        "karyotypeHigh" : 0.4,
        "karyotypeLow" : 0.31,
        "copyNumber" : "pass",
        "fivePrimeLrPcr" : "pass",
        "fivePrimeSrPcr" : "pass",
        "thawing" : "pass",
        "threePrimeLrPcr" : null,
        "threePrimeSrPcr" : "pass",
        "loa" : "pass",
        "loxp" : "pass",
        "lacz" : "pass",
        "chr1" : "pass",
        "chr8a" : "pass",
        "chr8b" : "pass",
        "chr11a" : "pass",
        "chr11b" : "pass",
        "chry" : "pass",
        "esCellDistributionCentre" : {
          "id" : 2,
          "name" : "KOMP"
        },
        "id" : 2967
      } ],
      "targRepEsCellDistributionProductList" : [ {
        "distributionNetworkName" : "MMRRC",
        "startDate" : "2018-04-19",
        "endDate" : "2018-04-19",
        "distributionIdentifier" : "RRID:MMRRC_048962-UCDT"
      } ],
      "_links" : {
        "pipeline" : [ {
          "href" : "http://localhost:8080/api/targ_rep/pipelines/4"
        } ],
        "allele" : [ {
          "href" : "http://localhost:8080/api/targ_rep/alleles/142"
        } ],
        "targeting_vector" : [ {
          "href" : "http://localhost:8080/api/targ_rep/targeting_vectors/158"
        } ],
        "self" : {
          "href" : "http://localhost:8080/api/targ_rep/es_cell/14210"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "http://localhost:8080/api/targ_rep/es_cell"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 1,
    "totalPages" : 1,
    "number" : 0
  }
}

12.2.2. Get specific TargRepEsCell by Id

This endpoint shows specific TargRep es cell by id the user has permission to see.

Example Request

Curl:

$ curl 'http://localhost:8080/api/targ_rep/es_cell/14210' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6IlFvWlVkTHJBVmRCZldfRllHWl9rR2ciLCJpYXQiOjE3MDg0NDE2NTMsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQ1M30.OY1QJSUqYgQNcHHh-usvGRreQ3ReZ0BW43cwrHuRhngg9R4Swk79iccWR3smLe9nxF3JYj7KwD9HMklEImngM6K_67H2GsjnpYgRvtdgQxrYp5M-3clUlxUO96gQcWABmR1eTIK8HeYeF7JcTeu-URuObE_TwAtX9j9z-7UK6MD7HkP53cJKVkxNBC80IpE9RJqW22cVRFHpfP6Daa0E5idtS1ySSj-fWTq9xc0rHXV1ZNT17TgUlucTC8th95O8iiMaHBap-OcCc6tSgGFiuaQObY-DwJn8ZpRvH-ctYAGbG7_iPeUl48EZqtnOHAcEHR1EN3JWfvKESnQtLmIrtQ'
Example Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/hal+json
Content-Length: 2171

{
  "id" : 14210,
  "pipelineId" : 4,
  "alleleId" : 142,
  "name" : "EPD0045_1_A11",
  "targetingVectorId" : 158,
  "parentalCellLine" : "JM8.N4",
  "ikmcProjectId" : "41713",
  "mgiAlleleId" : null,
  "alleleSymbolSuperscript" : null,
  "comment" : "",
  "contact" : null,
  "reportToPublic" : true,
  "productionQcFivePrimeScreen" : "pass",
  "productionQcLossOfAllele" : "pass",
  "productionQcLoxpScreen" : "pass",
  "productionQcThreePrimeScreen" : "not confirmed",
  "productionQcVectorIntegrity" : "pass",
  "userQcComment" : "pass",
  "userQcFivePrimeCassetteIntegrity" : "pass",
  "userQcFivePrimeLrPcr" : "pass",
  "userQcKaryotype" : "pass",
  "userQcLaczSrPcr" : "pass",
  "userQcLossOfWtAllele" : "pass",
  "userQcLoxpConfirmation" : "pass",
  "userQcMapTest" : "pass",
  "userQcMutantSpecificSrPcr" : "pass",
  "userQcNeoCountQpcr" : "pass",
  "userQcNeoSrPcr" : "pass",
  "userQcSouthernBlot" : "pass",
  "userQcThreePrimeLrPcr" : "pass",
  "userQcTvBackboneAssay" : "pass",
  "targRepDistributionQcList" : [ {
    "karyotypeHigh" : 0.4,
    "karyotypeLow" : 0.31,
    "copyNumber" : "pass",
    "fivePrimeLrPcr" : "pass",
    "fivePrimeSrPcr" : "pass",
    "thawing" : "pass",
    "threePrimeLrPcr" : null,
    "threePrimeSrPcr" : "pass",
    "loa" : "pass",
    "loxp" : "pass",
    "lacz" : "pass",
    "chr1" : "pass",
    "chr8a" : "pass",
    "chr8b" : "pass",
    "chr11a" : "pass",
    "chr11b" : "pass",
    "chry" : "pass",
    "esCellDistributionCentre" : {
      "id" : 2,
      "name" : "KOMP"
    },
    "id" : 2967
  } ],
  "targRepEsCellDistributionProductList" : [ {
    "distributionNetworkName" : "MMRRC",
    "startDate" : "2018-04-19",
    "endDate" : "2018-04-19",
    "distributionIdentifier" : "RRID:MMRRC_048962-UCDT"
  } ],
  "_links" : {
    "pipeline" : [ {
      "href" : "http://localhost:8080/api/targ_rep/pipelines/4"
    } ],
    "allele" : [ {
      "href" : "http://localhost:8080/api/targ_rep/alleles/142"
    } ],
    "targeting_vector" : [ {
      "href" : "http://localhost:8080/api/targ_rep/targeting_vectors/158"
    } ],
    "self" : {
      "href" : "http://localhost:8080/api/targ_rep/es_cell/14210"
    }
  }
}

12.2.3. Get specific TargRepEsCell by Gene

This endpoint shows specific TargRep es cell by gene symbol the user has permission to see.

Example Request

Curl:

$ curl 'http://localhost:8080/api/targ_rep/es_cell_by_symbol/Spanxn4' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6IjFVZ0t6MWtjQ2YyU2g3OVZ0UzlqcHciLCJpYXQiOjE3MDg0NDE2NTMsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQ1M30.bAN0JWJT-fDmfumn04evdwosf_75iTwLZuH6hn8NRHfE43zRceWcWkDnvQ8Roh2mFWwES53eYoPLI8sxHIMFk4fptsnpvpgIFsoyYwLmGxHvc_hF6ikGI_BviRRGeoGOiSK_klZyOXp3LY1-_etIixnRg8HA9A4Y04xP6uno-QDRqX0U0G1xabrqAYdfmgetBKiBpXJ0XG6Z7NhMeDYx1nRDP6U7mpgTJwYYiVgp0KJr-kQkVB6-IVUrNIN11VYuquSXwLXSVO2Na6-oN5IuiCkr-HOaemjoGJXl8exPcUhCdUt66b3mSHcvW44gxPfgsk57RQGi6J5eFKnv0-YBzw'
Example Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
Content-Length: 63

[ {
  "name" : "EPD0045_1_A11",
  "pipelineName" : "EUCOMM"
} ]

12.2.4. Get specific TargRepEsCell by name

This endpoint shows specific TargRep es cell by name the user has permission to see.

Example Request

Curl:

$ curl 'http://localhost:8080/api/targ_rep/es_cell_by_name/EPD0045_1_A11' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6Im85elpiWU1mMlNIV1I5MnFJYXBZNHciLCJpYXQiOjE3MDg0NDE2NTQsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQ1NH0.fBTIjwJKipzGobS6rD4iDX-LGFNK9xQObJPouwscTfMMsIBKCPti0PjCdL7eHd1IQS--_CaSxGXz68KGFFaOojDE3ATSAWTqGfmULWDNCWBi81E0J1napwbjzcTJmn5adtAsI-L4OD-6ACed-nyoksNzDxaZ20B_byyurHq3K0RV2h1Wh_w1Ng_dcTsRiyM31329C7cXHXISUJh-9VX4Fj939M5BOYzaZUuoo3sB2R4QbKJ1wmQ5f0s4MdejqH3r09jpHNE-BCe0fyuvbFtEF0OUo1OcvCtGtDawv8L60J0Nwky1OkVxHvoBHRiKeWCzJDEfQZFCovkPEjCWSNudeA'
Example Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
Content-Length: 59

{
  "name" : "EPD0045_1_A11",
  "pipelineName" : "EUCOMM"
}

13. Targrep pipeline

This section describes the REST endpoints for pipeline in the system.

13.1. Fields

These are the fields you are going to see in the body of a request in a GET operations.

Path Type Description

id

Number

Public identifier for the Pipeline. READ ONLY

name

String

Pipeline name

description

String

Pipeline description.

reportToPublic

Boolean

Indicates if pipeline will be reported to public

geneTrap

Boolean

generic transcriptome analysis pipeline

_links.self.href

String

Pipeline Link

13.2. GET

13.2.1. Get All TargRepPipeline

This endpoint shows the specific TargRep Pipeline the user has permission to see.

Example Request

Curl:

$ curl 'http://localhost:8080/api/targ_rep/pipelines' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6IkdGVUhaOVIwUnU0N1FGX1JWdld2aXciLCJpYXQiOjE3MDg0NDE2NTEsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQ1MX0.ZZqNXckFVjIXpPlb-Uhq_uozP6WIzS3rEgF3Ej9S_TDGcvtqIDrtfqgs9j0jCeVcXSHFnC6gU2q7xETUWo75G1jlyz5hCYSpg8LPqYl0JjrykFa95oJQ_1eH4tDlHOAIPSYFE8Xs2p7ohfaePulY-9msfBQRF7bWiHtkeKT8xkTu8VGNI6FnP775jjlVJwui7kKvJUcKkeMzUPOQUWTPhjaayMRibZdEKz2NyfesXLa7yFAT_Fq4boFb4bpiF3Pa8Ge7ToMigrnRs9J2Tasu1MBD4Rk4VKNxGNiN5yNARZuoFxNxzEJvlZmzdebLxvzwbEQviNk5LN0ueQhQ9qJ7CQ'
Example Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Link:
Content-Type: application/hal+json
Content-Length: 529

{
  "_embedded" : {
    "targrep_pipelines" : [ {
      "id" : 4,
      "name" : "EUCOMM",
      "description" : "EUCOMM consortia",
      "_links" : {
        "self" : {
          "href" : "http://localhost:8080/api/targ_rep/pipelines/4"
        }
      },
      "geneTrap" : false,
      "reportToPublic" : true
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "http://localhost:8080/api/targ_rep/pipelines"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 1,
    "totalPages" : 1,
    "number" : 0
  }
}

13.2.2. Get specific TargRepPipeline by Id

This endpoint shows specific TargRep Pipeline the user has permission to see.

Example Request

Curl:

$ curl 'http://localhost:8080/api/targ_rep/pipelines/4' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6IlA3S2lhZGdmNnlLLU1EZVNIQU1VM0EiLCJpYXQiOjE3MDg0NDE2NTEsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQ1MX0.ULha4O7A-v7JOrIPn0fNTNs0k7cBzS7m9B433c2oK3ddSNd7lITjjBR6gZUlS16voc76YIryMYqud3GbrSGaYOjPsTUp78N8ckkw0X-glh-FSWFV5uVuG9yxn95K_xlPWzDK3LS8T8QgB1DCBCQSJSkJLTiHdlS7qmEUQ3nfrcq1cuWpoD5LS71OVDpdUAJXSxAVXXY81fjVdazeX2YCwNFll1wdcF1S8Ru72SypV0RVCS2BBNVpWE8Xpt9mQa3x1od_M_k80g2HG0L0PYmj-3EicapMJpCV6OkoYU6nFT5nuoe6ZNe5Bf8OlcZovPid1h4ExvjWvgN0M_wxhahXJA'
Example Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/hal+json
Content-Length: 227

{
  "id" : 4,
  "name" : "EUCOMM",
  "description" : "EUCOMM consortia",
  "_links" : {
    "self" : {
      "href" : "http://localhost:8080/api/targ_rep/pipelines/4"
    }
  },
  "geneTrap" : false,
  "reportToPublic" : true
}

14. Targrep Targeting Vector

This section describes the REST endpoints for targeting vector in the system.

14.1. Fields

These are the fields you are going to see in the body of a request in a GET operations.

Path Type Description

id

Number

Public identifier for the Targeting Vector. READ ONLY

name

String

Targeting vector fields name

intermediateVector

String

Intermediate vector

reportToPublic

Boolean

Indicates if TargetingVector will be reported to public

ikmcProjectName

String

IKMC project mame

mgiAlleleNamePrediction

String

MGI Allele Name Prediction

productionCentreAutoUpdate

Null

Production Centre Auto Update

alleleTypePrediction

String

Allele type prediction

ikmc_project

Object

IKMC Project

_links.self.href

String

Targeting vektor Self Link

pipeline.id

Number

id. READ ONLY

pipeline.name

String

Pipeline name

pipeline.description

String

Pipeline description.

pipeline.reportToPublic

Boolean

Indicates if pipeline will be reported to public

pipeline.geneTrap

Boolean

generic transcriptome analysis pipeline

pipeline._links.pipeline[].href

String

Pipeline Self Link

allele.id

Number

id. READ ONLY.

allele.assembly

String

Allele Assembly

allele.chromosome

String

Allele Chromosome

allele.strand

String

Allele Strand

allele.mgi_accession_id

Null

MGI Accession id

allele.cassette

String

Allele Cassette

allele.backbone

String

Allele Backbone

allele.project_design_id

Number

Allele Project Design Id

allele.design_type.name

String

Allele Design Type Name

allele.subtype_description

String

Allele Subtype Description

allele.homology_arm_start

Number

Allele Homology Arm Start

allele.homology_arm_end

Number

Allele Homology Arm End

allele.cassette_start

Number

Allele Cassette Start

allele.cassette_end

Number

Allele Cassette End

allele.loxp_start

Number

Allele Loxp Start

allele.loxp_end

Number

Allele Loxp End

allele.cassette_type

String

Allele Cassette Type

allele.floxed_start_exon

String

Allele Floxed Star Exon

allele.floxed_end_exon

String

Allele Floxed End Exon

allele.design_subtype.name

String

Allele Design Subtype

allele._links.allele[].href

String

Allele Self Link

ikmc_project.id

Null

id. READ ONLY

ikmc_project.name

Null

Pipeline name

ikmc_project.status

Null

Pipeline description.

ikmc_project.pipeline_id

Null

Indicates if pipeline will be reported to public

targRepTargetingVectorDistributionProductList[]

Array

targRepEsCellDistributionProductList

targRepTargetingVectorDistributionProductList[].distributionNetworkName

String

targRepEsCellDistributionProductList

targRepTargetingVectorDistributionProductList[].startDate

String

Distribution startDate

targRepTargetingVectorDistributionProductList[].endDate

String

Distribution endDate

targRepTargetingVectorDistributionProductList[].distributionIdentifier

String

Distribution Identifier

14.2. GET

14.2.1. Get All TargRepTargetingVector

This endpoint shows the specific TargRep targeting vector the user has permission to see.

Example Request

Curl:

$ curl 'http://localhost:8080/api/targ_rep/targeting_vectors' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6ImFLOGU3eFFMM2NicVJnc3FjTUxWa3ciLCJpYXQiOjE3MDg0NDE2NTIsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQ1Mn0.Pp45PU4_zpyZqaa-9tC6Wp-V0DTrl2U90nGI2-I0uLNpQUV-qY4Jns0TiM8EqT5x3n_E9FPVYUfjQA4TKx1Z3ltAlXUtpAYG2VYX2wUSoRxNpYRaaCS7XtyK0EeJeDTKeROVcIKPOT0rZf_T6PG1TV8u7Ox5fY5DpundcsDgDqAfRpAW_MDvsdUjrJLgM1EWidHhgid2fJJCnnl6wI9tyj2d4hqqpLjxn3R6e6u9yLTGtrIDxxSSXvEGHnUJU3Ho60Bk76tmqF30XJNlUMRK5PGttHtW0u8j45Gv87gMpqfhy5hWk67mMk1A3tcJlUJf6X1T24obS6M1Y2tGU6WSAQ'
Example Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Link:
Content-Type: application/hal+json
Content-Length: 2386

{
  "_embedded" : {
    "targrep_targeting_vectors" : [ {
      "id" : 158,
      "name" : "PG00138_Y_5_B05",
      "intermediateVector" : "PCS00073_A_H01",
      "reportToPublic" : true,
      "ikmcProjectName" : "41713",
      "allele" : {
        "id" : 142,
        "assembly" : "GRCm38",
        "chromosome" : "5",
        "strand" : "-",
        "cassette" : "L1L2_Bact_P",
        "backbone" : "L3L4_pD223_DTA_T_spec",
        "_links" : {
          "allele" : [ {
            "href" : "http://localhost:8080/api/targ_rep/alleles/142"
          } ]
        },
        "project_design_id" : 175471,
        "design_type" : {
          "name" : "Conditional Ready"
        },
        "design_subtype" : {
          "name" : "Frameshift"
        },
        "subtype_description" : "",
        "homology_arm_start" : 24427320,
        "homology_arm_end" : 24416109,
        "cassette_start" : 24421536,
        "cassette_end" : 24421446,
        "loxp_start" : 24420131,
        "loxp_end" : 24420125,
        "mgi_accession_id" : null,
        "cassette_type" : "Promotor Driven",
        "floxed_start_exon" : "ENSMUSE00000183967",
        "floxed_end_exon" : "ENSMUSE00000183963"
      },
      "pipeline" : {
        "id" : 4,
        "name" : "EUCOMM",
        "description" : "EUCOMM consortia",
        "_links" : {
          "pipeline" : [ {
            "href" : "http://localhost:8080/api/targ_rep/pipelines/4"
          } ]
        },
        "geneTrap" : false,
        "reportToPublic" : true
      },
      "mgiAlleleNamePrediction" : "tm1a(EUCOMM)Wtsi",
      "productionCentreAutoUpdate" : null,
      "alleleTypePrediction" : "a",
      "targRepTargetingVectorDistributionProductList" : [ {
        "distributionNetworkName" : "MMRRC",
        "startDate" : "2018-04-19",
        "endDate" : "2018-04-19",
        "distributionIdentifier" : "RRID:MMRRC_048962-UCDT"
      } ],
      "_links" : {
        "self" : {
          "href" : "http://localhost:8080/api/targ_rep/targeting_vectors/158"
        }
      },
      "ikmc_project" : {
        "id" : null,
        "name" : null,
        "status" : null,
        "pipeline_id" : null
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "http://localhost:8080/api/targ_rep/targeting_vectors"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 1,
    "totalPages" : 1,
    "number" : 0
  }
}

14.2.2. Get specific TargRepTargetingVector by Id

This endpoint shows specific TargRep targeting vector the user has permission to see.

Example Request

Curl:

$ curl 'http://localhost:8080/api/targ_rep/targeting_vectors/158' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2V4cGxvcmUuYWFpLmViaS5hYy51ay9zcCIsImp0aSI6IjZ3dlhrSHFnYlFTNG5DWHN2QjhyckEiLCJpYXQiOjE3MDg0NDE2NTMsInN1YiI6InVzci0zYmM5ZTRmNi02NTJhLTRhYmYtYWQ5Mi03NzM5N2Y4YmRkM2YiLCJlbWFpbCI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuaWNrbmFtZSI6ImdlbnRhcl90ZXN0X3VzZXIxQGdlbnRhci5vcmciLCJuYW1lIjoiR2VuVGFSIFRlc3QgdXNlciAxIiwiZG9tYWlucyI6W10sImV4cCI6MTcwODQ1MjQ1M30.A_DrtxJdqU-1Th2Y4ibTcGtVBJIwsbkp38UQgyWarCSawJHKvQVpy_ZJcASP46isoH4qdKyCtshI3VeK-ukCaA8Xo8VN8YoK3sJ9EdwtFWWqxTBQ_um_jgjqDlKAMVnnRibNFUOUVHBkD9LvmF2zP3JcKQpJ04CUJavWoski5rcefPYMgYsztZlyUrW620j7sQTK7ojTZ0kLG5fqxYk9Kla2amILmVTfZu0FOtGPbPkfUB-9mYpJmP7ftsynvp3OrYAmfsDsUL6YDOI4TR1E8oc9lOYQMgZU5XVcFxzphbXUEawbl8bKo7RifdlHhHtClVzQl70gw1s2isfP_8AmPQ'
Example Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/hal+json
Content-Length: 1836

{
  "id" : 158,
  "name" : "PG00138_Y_5_B05",
  "intermediateVector" : "PCS00073_A_H01",
  "reportToPublic" : true,
  "ikmcProjectName" : "41713",
  "allele" : {
    "id" : 142,
    "assembly" : "GRCm38",
    "chromosome" : "5",
    "strand" : "-",
    "cassette" : "L1L2_Bact_P",
    "backbone" : "L3L4_pD223_DTA_T_spec",
    "_links" : {
      "allele" : [ {
        "href" : "http://localhost:8080/api/targ_rep/alleles/142"
      } ]
    },
    "project_design_id" : 175471,
    "design_type" : {
      "name" : "Conditional Ready"
    },
    "design_subtype" : {
      "name" : "Frameshift"
    },
    "subtype_description" : "",
    "homology_arm_start" : 24427320,
    "homology_arm_end" : 24416109,
    "cassette_start" : 24421536,
    "cassette_end" : 24421446,
    "loxp_start" : 24420131,
    "loxp_end" : 24420125,
    "mgi_accession_id" : null,
    "cassette_type" : "Promotor Driven",
    "floxed_start_exon" : "ENSMUSE00000183967",
    "floxed_end_exon" : "ENSMUSE00000183963"
  },
  "pipeline" : {
    "id" : 4,
    "name" : "EUCOMM",
    "description" : "EUCOMM consortia",
    "_links" : {
      "pipeline" : [ {
        "href" : "http://localhost:8080/api/targ_rep/pipelines/4"
      } ]
    },
    "geneTrap" : false,
    "reportToPublic" : true
  },
  "mgiAlleleNamePrediction" : "tm1a(EUCOMM)Wtsi",
  "productionCentreAutoUpdate" : null,
  "alleleTypePrediction" : "a",
  "targRepTargetingVectorDistributionProductList" : [ {
    "distributionNetworkName" : "MMRRC",
    "startDate" : "2018-04-19",
    "endDate" : "2018-04-19",
    "distributionIdentifier" : "RRID:MMRRC_048962-UCDT"
  } ],
  "_links" : {
    "self" : {
      "href" : "http://localhost:8080/api/targ_rep/targeting_vectors/158"
    }
  },
  "ikmc_project" : {
    "id" : null,
    "name" : null,
    "status" : null,
    "pipeline_id" : null
  }
}

15. Lastest updates

  • 2021-06-25: - Added the field esCellQcOnly to the Project entity to support projects that only relate to ES Cell QC.

    • Added documentation on the fields present in ES cell production plans.

    • Add documentation on the fields present in ES cell allele modification production plans.

    • Updated the state_machine_transitions document.

    • GET requests for ES cell and ES cell allele modification production plans are supported on the GenTaR Sandbox test database.

  • 2021-02-24: Add two new filters to projects. One for production colony names and one for phenotyping external references.

  • 2021-01-26: Phenotyping Stage state machine: The rollbackPhenotypingAllDataProcessed action used by the DCC now moves the PhenotypingAllDataProcessed state to PhenotypingAllDataSent rather than PhenotypingStarted.

  • 2020-11-30: New filter 'doNotCountTowardsCompleteness' added for phenotyping plans.

  • 2021-10-04: The 'species' field have been removed from project object.

  • 2021-10-04: The 'funders' field in plans can be updated after plan created.

  • 2021-10-04: The creAlleleModificationAttempt object have been renamed to eSCellAlleleModificationAttempt.

  • 2021-10-04: Two legacy fields have been added to the esCellAlleleModificationAttempt object: 'imitsMouseAlleleModId' and 'imitsTargRepAlleleId'. They will be read_only and only be there is the data was migrated from iMits.

  • 2021-10-04: Three legacy fields have been added to the phenotypingAttemptResponse object: 'imitsPhenotypeAttemptId', 'imitsPhenotypingProductionId' and 'imitsParentColonyId'. They will be read_only and only be there is the data was migrated from iMits.

  • 2021-10-04: The legacy field 'imitsAllele' in mutation object has been renamed to 'imitsAlleleId' for consistency. It will be read_only and only be there is the data was migrated from iMits.

  • 2023-08-01: QcNote filed added to mutation table

  • 2023-10-14: GLT Production Numbers Reports added

  • 2024-01-20: Development of a new attempt type within GenTar, termed "CRISPR Allele Modification."

  • 2024-02-05: Adding GID (Guide ID) to the guide system

  • 2024-02-20: Adition of RRIDs to the API endpoints for the Targ Rep targeting vector and ES cell data.