Przejdź do głównej zawartości

Genome Liftover

GeneBe Liftover maps human genomic positions, intervals and variants between reference assemblies. Use it to convert GRCh37 (hg19) coordinates to GRCh38 (hg38), map in the reverse direction, or convert to and from T2T-CHM13 (hs1).

To lift a variant table and separate mappings that need review, follow Lift a pandas DataFrame from hg19 to hg38.

Convert coordinates in the browser​

  1. Open GeneBe Liftover.
  2. Select the input assembly under From and the output assembly under To.
  3. Paste one position, interval or variant per line, up to 100 lines per submission.
  4. Select Submit and review each row's status, mapping candidates and any warnings.

Supported input formats​

Input typeExamples
Single positionchr6:160585140, 6 160585140, chr6-160585140
Intervalchr6:160585140-160585144, chr6 160585140 160585144
VCF-style variantchr6-160585140-T-G, chr6:160585140 T>G
HGVS variantNM_005577.4:c.4195A>C
SPDI variantchr6:160585139:T:G for the hg19 SNV above
dbSNP identifierrs429358

Positions and VCF-style variants are 1-based. Text intervals are 1-based and include both endpoints. SPDI uses a 0-based position. For positions and intervals, the chr prefix is optional and you can use colons, hyphens or whitespace as separators. For BED files, use the BED upload or endpoint.

Liftover API​

Send a JSON array of input strings to POST https://api.genebe.net/cloud/api-public/v2/liftover with Content-Type: application/json. Both query parameters are required. Set from to the source assembly and dest to the destination assembly. Use hg19, hg38 or hs1 as the parameter values.

curl --fail-with-body \
'https://api.genebe.net/cloud/api-public/v2/liftover?from=hg19&dest=hg38' \
-H 'Content-Type: application/json' \
--data '["chr6-160585140-T-G"]'
{
"dest": "hg38",
"from": "hg19",
"results": [
{
"input": "chr6-160585140-T-G",
"queryType": "VARIANT",
"status": "RESOLVED",
"source": {"chr": "6", "start": 160585140, "end": 160585140},
"sourceVariant": {"genome": "hg19", "chr": "6", "pos": 160585140, "ref": "T", "alt": "G"},
"candidates": [
{
"genome": "hg38",
"chr": "chr6",
"start": 160164108,
"end": 160164108,
"strand": "+",
"percentMapped": 1.0,
"ref": "T",
"alt": "G"
}
]
}
]
}

In this example, the hg19 variant chr6-160585140-T-G maps to chr6-160164108-T-G in hg38. For variant queries, build the destination variant from the candidate's chr, start, ref and alt. GeneBe rebuilds the alleles against the destination reference. The candidate's strand gives the mapping orientation, and percentMapped is a fraction where 1.0 means the entire region mapped.

For a single item, use GET /cloud/api-public/v2/liftover with the same assembly parameters and a URL-encoded query. It returns one result object directly.

curl --fail-with-body --get 'https://api.genebe.net/cloud/api-public/v2/liftover' \
--data-urlencode 'from=hg19' \
--data-urlencode 'dest=hg38' \
--data-urlencode 'query=chr6:160585140-160585144'

Open the hg19-to-hg38 interval liftover response in your browser

Interpret mapping statuses and warnings​

The batch endpoint returns one result per input in the original order. Check each result's status even when the HTTP request succeeds.

StatusMeaning
RESOLVEDOne mapping candidate. Review any warnings before using it.
AMBIGUOUSMultiple mapping candidates. Review them before selecting one.
UNRESOLVEDThe input was recognized, but no mapping could be resolved.
INVALID, NOT_RECOGNIZED, UNSUPPORTEDInspect the errors for the input or format issue.

The optional warnings and errors arrays provide a machine-readable code and a human-readable message. For example, PARTIAL_MATCH indicates that only part of a region mapped, REF_MISMATCH indicates a difference between the source and destination reference alleles, and STRAND_FLIPPED indicates a change in mapping orientation. ALT_EQUALS_DEST_REF indicates that the alternate allele matches the destination reference. Swagger batch liftover · Swagger single-item liftover

Liftover a BED file​

Select the assemblies in the browser, upload a plain, uncompressed BED file and select Lift BED. BED coordinates are 0-based with an exclusive end. The tool preserves headers and copies columns 4 and later verbatim, including any strand column. It silently skips malformed rows and regions with zero or multiple mappings. Use the per-item JSON API when you need to track those outcomes.

For scripts, send the raw BED file with Content-Type: text/plain to the BED endpoint. Swagger BED liftover

curl --fail-with-body \
'https://api.genebe.net/cloud/api-public/v2/liftover/bed?from=hg19&dest=hg38' \
-H 'Content-Type: text/plain' \
--data-binary @input.bed \
--output lifted.hg38.bed

If you have HGVS descriptions and want genomic coordinates on GRCh38, see the HGVS Converter.