curl --request POST \
--url https://cloudlab.scispot.io/sequences \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "GFP Gene",
"type": "DNA",
"sequence": "ATGCGTAAAGGCGAGGAAC",
"description": "GFP coding sequence tracked in Sample Manager",
"circular": false,
"annotations": [
{
"name": "CDS",
"start": 0,
"end": 18,
"type": "gene",
"forward": true
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'GFP Gene',
type: 'DNA',
sequence: 'ATGCGTAAAGGCGAGGAAC',
description: 'GFP coding sequence tracked in Sample Manager',
circular: false,
annotations: [{name: 'CDS', start: 0, end: 18, type: 'gene', forward: true}]
})
};
fetch('https://cloudlab.scispot.io/sequences', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://cloudlab.scispot.io/sequences"
payload = {
"name": "GFP Gene",
"type": "DNA",
"sequence": "ATGCGTAAAGGCGAGGAAC",
"description": "GFP coding sequence tracked in Sample Manager",
"circular": False,
"annotations": [
{
"name": "CDS",
"start": 0,
"end": 18,
"type": "gene",
"forward": True
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"uuid": "<uuid>",
"type": "DNA"
}{
"success": false,
"message": "Invalid Authentication Token"
}{
"success": false,
"message": "Missing Authentication Token"
}{
"success": false,
"message": "Validation error"
}{
"success": false,
"message": "Operation failed"
}Create a Sequence
This API endpoint can be used to create a sequence of any type the scispot supports:
-
DNA sequence
-
RNA sequence
-
Mixed DNA and RNA sequence
-
Oligo
-
Protein
In addition to name, provide sequence or sequenceData. type is optional and defaults to DNA.
Request body must include sequence content using either sequence or sequenceData.
curl --request POST \
--url https://cloudlab.scispot.io/sequences \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "GFP Gene",
"type": "DNA",
"sequence": "ATGCGTAAAGGCGAGGAAC",
"description": "GFP coding sequence tracked in Sample Manager",
"circular": false,
"annotations": [
{
"name": "CDS",
"start": 0,
"end": 18,
"type": "gene",
"forward": true
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'GFP Gene',
type: 'DNA',
sequence: 'ATGCGTAAAGGCGAGGAAC',
description: 'GFP coding sequence tracked in Sample Manager',
circular: false,
annotations: [{name: 'CDS', start: 0, end: 18, type: 'gene', forward: true}]
})
};
fetch('https://cloudlab.scispot.io/sequences', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://cloudlab.scispot.io/sequences"
payload = {
"name": "GFP Gene",
"type": "DNA",
"sequence": "ATGCGTAAAGGCGAGGAAC",
"description": "GFP coding sequence tracked in Sample Manager",
"circular": False,
"annotations": [
{
"name": "CDS",
"start": 0,
"end": 18,
"type": "gene",
"forward": True
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"uuid": "<uuid>",
"type": "DNA"
}{
"success": false,
"message": "Invalid Authentication Token"
}{
"success": false,
"message": "Missing Authentication Token"
}{
"success": false,
"message": "Validation error"
}{
"success": false,
"message": "Operation failed"
}Authorizations
Personal access token from Scispot Account → Personal Tokens
Body
- Option 1
- Option 2
The name of the sequence to create.
The raw sequence content (e.g. bases or residues). Provide either sequence or sequenceData.
The sequence type. Defaults to DNA. One of: DNA, RNA, OLIGO, PROTEIN (aliases PEPTIDE/AA/AMINO_ACID), MIXED.
Alias for sequence; the raw sequence content. Provide either sequence or sequenceData.
(Optional) A free-text description of the sequence.
(Optional) Whether the sequence is circular. Ignored (forced to false) for protein sequences.
(Optional) A client-supplied UUID to assign to the new sequence. If omitted, one is generated.
(Optional) Feature annotations to seed on the sequence.
Show child attributes
Show child attributes
