Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Job manager crashed while running this job (missing heartbeats).
Error code:   JobManagerCrashedError

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

id
string
primary
string
evolutionary
list
secondary
list
tertiary
list
protein_length
int64
valid_mask
list
2LQX_1_A
SEKPQQELEECQNVCRMKRWSTEMVHRCEKKCEEKFERQQR
[ [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ], [ 0, 0, 0.400000006, 0.6000000238, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[]
[ [ 2.0939998627, 0.0020000001, -1.2419999838 ], [ 5.1259999275, -2.0210001469, -2.3289999962 ], [ 7.5229997635, 0.6150000095, -3.6610000134 ], [ 9.7579994202, 2.7279999256, -1.3819999695 ], [ 7.2379999161, 5.5300002098, -0.8669999838 ], ...
41
[ true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true...
3NQO_1_A
GMDYSNELKELFLMNQTYATLFTLTNKIQIEGDKYFGILTSRQYMTILSILHLPEEETTLNNIARKMGTSKQNINRLVANLEKNGYVDVIPSPHDKRAINVKVTDLGKKVMVTCSRTGINFMADVFHEFTKDELETLWSLLKKMYRFNGEEQDGFEEDANFMEYEEIDKIKSEALEEFAKRRNRVNKND
[ [ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 ], [ ...
[]
[ [ 0, 0, 0 ], [ 0, 0, 0 ], [ 101.9659957886, 41.5789985657, 51.1150016785 ], [ 98.2600021362, 40.7700004578, 51.1399993896 ], [ 99.0179977417, 37.2099990845, 52.2539978027 ], [ 97.3649978638, 37.8619995117, 55.6779975891 ],...
189
[ false, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, tr...
4XG0_1_A
"MHHHHHHSSGVDLGTENLYFQSMGGPYIGIVADDLTGSGDTAVQFVRAGWATQLSVGGAEQALADPAVRQAEVLAVTTHSRPLAAADAAAVVRGEVERL(...TRUNCATED)
[[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0],[0.0,0.0,0.0,(...TRUNCATED)
[]
[[0.0,0.0,0.0],[0.0,0.0,0.0],[0.0,0.0,0.0],[0.0,0.0,0.0],[0.0,0.0,0.0],[0.0,0.0,0.0],[0.0,0.0,0.0],[(...TRUNCATED)
427
[false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,fal(...TRUNCATED)
2ROD_2_B
AELPPEFAAQLRKIGDKVYCTWSAPDM
[[1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0],[0.0,0.0,0.0,(...TRUNCATED)
[]
[[22.5819988251,-20.3519992828,13.6990003586],[20.2509994507,-17.5340003967,14.845000267],[19.195999(...TRUNCATED)
27
[true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true(...TRUNCATED)
3W4T_1_A
"MSEKTTKGVQLLRGDPKKAIVRLSIAMMIGMSVQTLYNLADGIWVSGLGPESLAAVGLFFPVFMGIIALAAGLGVGTSSAIARRIGARDKEGADNVAVH(...TRUNCATED)
[[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0],[0.0,0.0,0.0,(...TRUNCATED)
[]
[[0.0,0.0,0.0],[0.0,0.0,0.0],[0.0,0.0,0.0],[-57.3639984131,0.3070000112,24.8199996948],[-54.61600112(...TRUNCATED)
461
[false,false,false,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,t(...TRUNCATED)
1GAI_1_A
"ATLDSWLSNEATVARTAILNNIGADGAWVSGADSGIVVASPSTDNPDYFYTWTRDSGLVIKTLVDLFRNGDTDLLSTIEHYISSQAIIQGVSNPSGDLS(...TRUNCATED)
[[1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0],[0.0,0.0,0.0,(...TRUNCATED)
[]
[[49.1420021057,47.3710021973,20.3789997101],[46.0670013428,47.2579994202,18.1450004578],[46.1329994(...TRUNCATED)
472
[true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true(...TRUNCATED)
4MH6_1_A
"MHHHHHHSSGVDLGTENLYFQSNAMIERLLEIKKIRADRADKAVQRQEYRVANVAAELQKAERSVADYHVWRQEEEERRFAKAKQQTVLLKELETLRQE(...TRUNCATED)
[[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0],[0.0,0.0,0.0,(...TRUNCATED)
[]
[[0.0,0.0,0.0],[0.0,0.0,0.0],[0.0,0.0,0.0],[0.0,0.0,0.0],[0.0,0.0,0.0],[0.0,0.0,0.0],[0.0,0.0,0.0],[(...TRUNCATED)
177
[false,false,false,false,false,false,false,false,false,false,false,false,false,true,true,true,true,t(...TRUNCATED)
4TU8_1_A
"GPLGSARRLYVGNIPFGITEEAMMDFFNAQMRLGGLTQAPGNPVLAVQINQDKNFAFLEFRSVDETTQAMAFDGIIFQGQSLKIRRPHDYQPLPGAHKL(...TRUNCATED)
[[0.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0],[0.0,0.0,0.0,(...TRUNCATED)
[]
[[-27.2339992523,-19.7240009308,17.9559993744],[-28.8700008392,-18.2089996338,21.0729999542],[-27.59(...TRUNCATED)
174
[true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true(...TRUNCATED)
4LQZ_1_A
"MGSDKIHHHHHHENLYFQGQRFEIQQHNETIGSIYFSADYAHIRGIEKGTAKYFIDKVGSKRYLFIEYIPDNVLNCKPDFWKTLKYKKDKVTYYVYLIE(...TRUNCATED)
[[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0],[0.0,0.0,0.0,(...TRUNCATED)
[]
[[0.0,0.0,0.0],[0.0,0.0,0.0],[0.0,0.0,0.0],[0.0,0.0,0.0],[0.0,0.0,0.0],[0.0,0.0,0.0],[0.0,0.0,0.0],[(...TRUNCATED)
146
[false,false,false,false,false,false,false,false,false,false,false,false,true,true,true,true,true,tr(...TRUNCATED)
1G1T_1_A
"WSYNTSTEAMTYDEASAYCQQRYTHLVAIQNKEEIEYLNSILSYSPSYYWIGIRKVNNVWVWVGTQKPLTEEAKNWAPGEPNNRQKDEDCVEIYIKREK(...TRUNCATED)
[[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,0.0,1.0],[0.0,0.997247(...TRUNCATED)
[]
[[46.4170036316,88.9190063477,33.0670013428],[46.3379974365,89.9540023804,36.7290000916],[45.8409996(...TRUNCATED)
157
[true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true(...TRUNCATED)
End of preview.

TAPE Contact Prediction

Protein chains with 3D coordinates, for predicting which residues touch in the folded structure. This is the contact prediction task of TAPE (Rao et al., NeurIPS 2019); TAPE took the data from ProteinNet (AlQuraishi, 2019). The files are TAPE's JSON files, gzip-compressed; decompressed, they are byte-identical to TAPE's.

The task: given a chain's amino-acid sequence (primary), predict its residue–residue contact map.

Quick start

from datasets import load_dataset

default = load_dataset("hazemessam/contact-prediction", "default")
print(default["train"][0])

Files and splits

split file chains sequence length (residues)
train proteinnet_train.json.gz 25,115 20 to 999 (median 172)
validation proteinnet_valid.json.gz 224 20 to 689 (median 163)
test proteinnet_test.json.gz 40 75 to 670 (median 261)

Test chains are CASP12 targets (ids such as FM#T0859 and TBM#T0942).

Contacts

The labels are coordinates, not a contact map. TAPE's code (ProteinnetDataset in tape/datasets.py) builds the map as: two residues are in contact when their tertiary coordinates are less than 8.0 apart; pairs closer than 6 positions in the sequence, or involving a residue whose valid_mask is false, are ignored (set to -1).

import numpy as np
from scipy.spatial.distance import pdist, squareform

def contact_map(rec):
    contacts = np.less(squareform(pdist(rec["tertiary"])), 8.0).astype(np.int64)
    valid = np.asarray(rec["valid_mask"])
    i, j = np.indices(contacts.shape)
    contacts[~(valid[:, None] & valid[None, :]) | (np.abs(i - j) < 6)] = -1
    return contacts

Columns

field type role meaning
id string identifier ProteinNet record identifier
primary string input amino-acid sequence, one letter per residue
tertiary list of [3 floats] per residue label 3D coordinates, one point per residue
valid_mask list of bool mask false for residues without coordinates
evolutionary list of [21 floats] per residue feature per-residue evolutionary profile from TAPE
secondary list unused empty in every record
protein_length int metadata length of primary

Verification

Checked on 2026-11-13 against the original source. SHA-256 of each file in this repo:

file SHA-256 check against source
proteinnet_train.json.gz e25c5b64b5a885816f842f9fc0f8ee648884893487f486414035156b0dc2880b decompressed bytes identical to TAPE's .json
proteinnet_valid.json.gz 276d2beab254d4df65f61f071e290f95243c11d154cc7fb728c4a12b75ff35f4 decompressed bytes identical to TAPE's .json
proteinnet_test.json.gz 6d5d87407a137e8357d08a9ea43894ce7b378243096ff88c28b06afa4d7b89ff decompressed bytes identical to TAPE's .json

Source, license and citation

Copied from TAPE's JSON download, http://s3.amazonaws.com/songlabdata/proteindata/data_raw_pytorch/proteinnet.tar.gz (TAPE's README: https://github.com/songlab-cal/tape#data). TAPE's repository is licensed BSD-3-Clause; the data come from the publications below. The files here are gzip-compressed to save space. Please cite TAPE and the original data source:

@inproceedings{rao2019tape,
  title     = {Evaluating Protein Transfer Learning with TAPE},
  author    = {Rao, Roshan and Bhattacharya, Nicholas and Thomas, Neil and Duan, Yan and Chen, Xi and Canny, John and Abbeel, Pieter and Song, Yun S.},
  booktitle = {Advances in Neural Information Processing Systems},
  year      = {2019}
}

@article{alquraishi2019proteinnet,
  title   = {ProteinNet: a standardized data set for machine learning of protein structure},
  author  = {AlQuraishi, Mohammed},
  journal = {arXiv preprint arXiv:1902.00249},
  year    = {2019}
}

Changes

README rewritten and configs: added on 2026-11-13 (previous revision cf21bdd). Data files unchanged.

Downloads last month
33

Paper for hazemessam/contact-prediction