Skip to content

Batch Requests ​

Upload a VCF or tab-separated values (TSV) file to query or register multiple variants.

MethodEndpointDescription
POST/alleles?file={format}Query variants without registering new data.
PUT/alleles?file={format}Register variants using a Genboree account and token.

Use file=vcf for VCF input or declare the TSV columns in file. Use fields to select response fields.

VCF Payload ​

Save the following as payload.vcf. The header declares the reference assembly and contigs; data columns are separated by tabs.

text
##fileformat=VCFv4.2
##contig=<ID=1,length=248956422,assembly=GRCh38>
##contig=<ID=2,length=242193529,assembly=GRCh38>
##contig=<ID=3,length=198295559,assembly=GRCh38>
##contig=<ID=4,length=190214555,assembly=GRCh38>
##contig=<ID=5,length=181538259,assembly=GRCh38>
##contig=<ID=6,length=170805979,assembly=GRCh38>
##contig=<ID=7,length=159345973,assembly=GRCh38>
##contig=<ID=8,length=145138636,assembly=GRCh38>
##contig=<ID=9,length=138394717,assembly=GRCh38>
##contig=<ID=10,length=133797422,assembly=GRCh38>
##contig=<ID=11,length=135086622,assembly=GRCh38>
##contig=<ID=12,length=133275309,assembly=GRCh38>
##contig=<ID=13,length=114364328,assembly=GRCh38>
##contig=<ID=14,length=107043718,assembly=GRCh38>
##contig=<ID=15,length=101991189,assembly=GRCh38>
##contig=<ID=16,length=90338345,assembly=GRCh38>
##contig=<ID=17,length=83257441,assembly=GRCh38>
##contig=<ID=18,length=80373285,assembly=GRCh38>
##contig=<ID=19,length=58617616,assembly=GRCh38>
##contig=<ID=20,length=64444167,assembly=GRCh38>
##contig=<ID=21,length=46709983,assembly=GRCh38>
##contig=<ID=22,length=50818468,assembly=GRCh38>
##contig=<ID=X,length=156040895,assembly=GRCh38>
##contig=<ID=Y,length=57227415,assembly=GRCh38>
##contig=<ID=M,length=16569,assembly=GRCh38>
#CHROM	POS	ID	REF	ALT	QUAL	FILTER	INFO
1	10073	.	T	C	.	.	.
1	10702	.	C	C	.	.	.
1	11880	.	G	C	.	.	.
2	65719	.	G	A	.	.	.
2	65720	.	T	C	.	.	.
2	65721	.	A	G	.	.	.
bash
curl -X POST "https://reg.genome.network/alleles?file=vcf&fields=none+@id+communityStandardTitle" --data-binary "@payload.vcf"

TSV Payloads ​

Declare TSV columns in the file parameter in the same order as the payload. Separate columns with tabs and records with newlines.

POST requests must contain exactly one key column, such as hgvs, id, MyVariantInfo_hg19.id, MyVariantInfo_hg38.id, ExAC.id, or a supported gnomAD ID column.

Column groupSupported names
Varianthgvs, id
dbSNPdbSNP.rs
ClinVarClinVar.alleleId, ClinVar.variationId, ClinVar.preferredName, ClinVar.RCV
MyVariantInfoMyVariantInfo_hg19.id, MyVariantInfo_hg38.id
Population databasesExAC.id, gnomAD_2.id, gnomAD_3.id, gnomAD_4.id
COSMICCOSMIC.id
External sourcesexternalSources.*

CA ID payload ​

text
CA28817824
CA28817825
CA28817826
bash
curl -X POST "https://reg.genome.network/alleles?file=id&fields=none+@id+communityStandardTitle" --data-binary "@payload.id.tsv"

HGVS payload ​

text
NC_000001.11:g.1000000G>T
NC_000001.11:g.1000001G>T
NC_000001.11:g.1000002T>A
bash
curl -X POST "https://reg.genome.network/alleles?file=hgvs&fields=none+@id+communityStandardTitle" --data-binary "@payload.hgvs.tsv"

POST Requests - Read Only ​

POST requests accept the VCF and TSV payloads above and do not register new variants.

Large uploads

The maximum payload size is 4 GB. Split larger uploads into smaller files, preferably sorted by genomic coordinate. Input and output are streamed in batches; sorting the input improves processing efficiency.

The number of parallel requests a server can handle depends on its configuration and hardware; the documented range is 32–64 parallel requests. Avoid overwhelming the service. Use fields to reduce response size and apply supported query limits where appropriate.

Example fields filter:

bash
curl -X POST "https://reg.genome.network/alleles?file=id&fields=none+@id+communityStandardTitle+externalRecords+genomicAlleles+transcriptAlleles" --data-binary "@payload.id.tsv"
bash
curl -X POST "https://reg.genome.network/alleles?file=id&fields=all+@id-communityStandardTitle+externalRecords-genomicAlleles+transcriptAlleles" --data-binary "@payload.id.tsv"

Use dot notation to select nested fields:

bash
curl -X POST "https://reg.genome.network/alleles?file=id&fields=none+transcriptAlleles.MANE.protein.RefSeq.hgvs" --data-binary "@payload.id.tsv"

PUT Requests - Batch Update ​

Registering new variants requires a Genboree account and a time-limited token. Tokens are valid for 24 hours; you can generate a new token for each request.

Sign the URL as CAR sees it, including the query parameters but excluding authentication parameters.

Use URL_TOKEN for signing and URL for the PUT request. CAR does not see the proxy mount (such as /car64-stg), so it is omitted from the token URL.

bash
URL="https://reg.genome.network/alleles?file=vcf&fields=none+@id"
URL_TOKEN="https://reg.genome.network/alleles?file=vcf&fields=none+@id"
LOGIN="" # Provide
read -rsp "Enter password: " PASSWORD; echo
IDENTITY=$(printf '%s' "${LOGIN}${PASSWORD}" | sha1sum | awk '{print $1}')
TIME=$(date +%s)
TOKEN=$(printf '%s' "${URL_TOKEN}${IDENTITY}${TIME}" | sha1sum | awk '{print $1}')
REQUEST="${URL}&gbLogin=${LOGIN}&gbTime=${TIME}&gbToken=${TOKEN}"

curl -X PUT "${REQUEST}" --data-binary "@payload.vcf"

BIOINFORMATICS RESEARCH LABORATORY