Create Geneset

post

/HSDataService-web/api/3.2.0/geneSets/create

This endpoint supports the creation of a Geneset for the Logging in User with Geneset Name, multiple Hugo Names or Gene Names, Species, Assembly Versions, Description as inputs. It returns Geneset information like Geneset identifier, Name, Description and Gene Count.

Request

Supported Media Types
  • application/json
  • application/xml
Body Parameter
Inputs for creating a geneset
Root Schema : GeneSetCreateRequest
Type: object
Inputs for creating a geneset
Nested Schema : assemblyVersions
Type: array
list of assembly versions
Nested Schema : geneNames
Type: array
List of gene names
Nested Schema : hugoNames
Type: array
List of the approved HUGO symbols for species loci, including protein coding genes, RNA genes and pseudogenes, e.g. 'SRY', 'DMRT1', 'FOXL2', etc.

Response

Supported Media Types
  • application/json
  • application/xml
200 Response
successful operation
Body
Root Schema : GeneSet
Type: object
Nested Schema : Number
Type: object
Nested Schema : LinkedReference
Type: object
Nested Schema : invalidGeneNames
Type: array
List of invalid Gene Names provided in the request
Nested Schema : invalidHugoNames
Type: array
List of invalid HUGO Names provided in the request
400 Response
Invalid parameters supplied
404 Response
geneSet not created

Examples

The following example submits a POST request.

API URL

http://localhost:7001/HSDataService-web/api/3.2.0/geneSets/create

Example of Request Body

The following example shows the contents of the request body in JSON format:

{
  "hugoNames": ["BID","EGFR"],
   "geneNames":["ENSG00000015475"],
   "species" : "homo sapiens",
   "assemblyVersions":["GRCh37"],
   "geneSetName":"geneSet",
   "geneSetDesc":"geneSetDesc"
     
}

Example of Response Body

The following example shows the contents of the response body in JSON format:

{
  "geneSetId": 10000000002249,
  "geneSetName": "geneSet",
  "geneSetDesc": "geneSetDesc",
  "geneCount": 2,
  "geneSetMember": {
    "reference": "/HSDataService-web/api/3.2.0/geneSets/10000000002249"
  }
}