Datasets:

Modalities:
Text
Formats:
parquet
Libraries:
Datasets
Dask
License:
Dataset Viewer
Auto-converted to Parquet Duplicate
CDS_position_ids
sequencelengths
4
648
IGS_position_ids
sequencelengths
0
490
CDS_ids
sequencelengths
4
648
IGS_ids
sequencelengths
0
490
CDS_seqs
sequencelengths
4
648
IGS_seqs
sequencelengths
0
490
CDS_orientations
sequencelengths
4
648
[ 1, 3, 5, 7, 9, 10, 11, 12, 14, 16, 17, 19, 21, 23, 25, 27, 28, 30, 32, 34, 36, 38, 40, 42, 43, 44, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, 65, 66, 68, 70, 72, 74, 76, 77, 78, 80, 82, 84, 86, 88, 90, 91, 92, 94,...
[ 0, 2, 4, 6, 8, 13, 15, 18, 20, 22, 24, 26, 29, 31, 33, 35, 37, 39, 41, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 67, 69, 71, 73, 75, 79, 81, 83, 85, 87, 89, 93, 95, 97, 99, 101, 103, 105, 107, 110, 112, 115, 117, 1...
[ "2961237444|Ga0149631_01|CDS|2961237445|-|1061:2011", "2961237444|Ga0149631_01|CDS|2961237446|-|2269:2862", "2961237444|Ga0149631_01|CDS|2961237447|+|3267:4208", "2961237444|Ga0149631_01|CDS|2961237448|-|4294:5793", "2961237444|Ga0149631_01|CDS|2961237449|+|6086:6412", "2961237444|Ga0149631_01|CDS|2961237...
[ "2961237444|Ga0149631_01|IG|IG_000001|+|1043:1060", "2961237444|Ga0149631_01|IG|IG_000002|+|2012:2268", "2961237444|Ga0149631_01|IG|IG_000003|+|2863:3266", "2961237444|Ga0149631_01|IG|IG_000004|+|4209:4293", "2961237444|Ga0149631_01|IG|IG_000005|+|5794:6085", "2961237444|Ga0149631_01|IG|IG_000006|+|7335:7...
[ "MNQLDALKQLTTVVADSGDIESIRQFEPQDATTNPSLILKAAALPQYKALITEALDYARRQGGSKETQLINASDKLAVNIGVEILKSVPGRISTEVDARLSFDRGMCVAKARKLIAMYQEQGIDKSRILIKLASTWEGIKAAEELEKEGINTNLTLLFSFAQARACAEAGVYLISPFVGRIYDWYQAKQPAADYDAEQDPGVKSVRTIYEYYKRHRYQTVIMGASFRKVEQILALAGCDRLTIAPNLLEQLKNSDRPVERKLTPSTEGFHQPAPLAEAEFRWLHNQDAMAVEKLAEGIRLFAVDQQKLEDMLAAQ...
[ "AACGAAACTCCAGTACGG", "TGATAAGCTCCTTGACCAAGCTCAACGTAGGGAAATGAGAACCTTTTTCATCATAGGGGGAACACACTGCATCATCGGGTCGGGAATGAAAATGCGCTTTTTCTGATTGTTGCGATGGATAATAACAATGAATGCCGAGTAAACCCAGGCGGGGCGCGGTTTACGGCGGGGGAGGCGAGGGGGGCGGTGGCGCGAGAGCCAAAAAAAGAAGGGTTCAGCGCCAGGCTGAACCCTCAAAGATGGCCTCATTTGGCCGA", "AAGTCACTCCTGACTGAAATTATGTTGT...
[ false, false, true, false, true, true, true, true, true, false, false, true, true, true, true, false, false, false, true, false, true, true, true, true, true, true, true, true, true, true, false, false, false, false, false, true, true, true, ...
[0,2,3,4,5,7,9,11,13,15,17,19,21,23,25,27,29,31,32,34,36,37,38,39,40,41,43,45,47,49,50,52,54,56,58,6(...TRUNCATED)
[1,6,8,10,12,14,16,18,20,22,24,26,28,30,33,35,42,44,46,48,51,53,55,57,59,61,63,65,67,69,71,73,75,78,(...TRUNCATED)
["2961237444|Ga0149631_01|CDS|2961237530|+|85475:87421","2961237444|Ga0149631_01|CDS|2961237531|+|87(...TRUNCATED)
["2961237444|Ga0149631_01|IG|IG_000064|+|87422:87431","2961237444|Ga0149631_01|IG|IG_000065|+|91659:(...TRUNCATED)
["ATWYLTRAYVDQAAGRSWAALENVTRARALAPSDAGIQAYYVTLLAANRVADPALRASQGLALPPAQQRRLQVDEAAELVRLSFIDARGEQERFVIAD(...TRUNCATED)
["AGGAATAATC","TACAGTCCATTGTCGTGATCATTGCGGCGATAGCCGGATGGCAAGCAGCCGGGCATTTTATCGGGGTAAAAGGGGGCGTCAAGGT(...TRUNCATED)
[true,true,true,true,false,true,false,true,true,false,false,false,true,true,true,true,false,true,tru(...TRUNCATED)
[0,2,4,5,6,7,9,10,12,14,16,17,18,20,22,24,26,27,29,31,33,34,35,37,39,41,43,45,47,49,51,52,54,56,58,6(...TRUNCATED)
[1,3,8,11,13,15,19,21,23,25,28,30,32,36,38,40,42,44,46,48,50,53,55,57,59,62,64,66,68,70,72,75,79,81,(...TRUNCATED)
["2961237444|Ga0149631_01|CDS|2961237823|-|397366:400443","2961237444|Ga0149631_01|CDS|2961237824|-|(...TRUNCATED)
["2961237444|Ga0149631_01|IG|IG_000289|+|400444:400545","2961237444|Ga0149631_01|IG|IG_000290|+|4012(...TRUNCATED)
["MPAAPLASLTEILARRDWQNPACTHYRRLDAHPPFASWRTVEDARNDAPSASRRSLNGEWRFSYFPRPEAAPEGWLQQDLPDAAPLAVPSNWQLAGYD(...TRUNCATED)
["CGGCGATCGTCCAGTCGGCTAGGTGATGCTCACCAAGATGCTGACCGGCGCATAAAAAGTAAAGCGGTTACACGCAACCTTGCAAGGGCGATCAAATA(...TRUNCATED)
[false,false,true,true,true,true,true,true,true,true,true,true,true,true,true,false,true,false,true,(...TRUNCATED)
[ 1, 3, 5, 7, 9, 11, 13, 14, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41 ]
[ 0, 2, 4, 6, 8, 10, 12, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40 ]
["2961237444|Ga0149631_01|CDS|2961238380|+|947731:948534","2961237444|Ga0149631_01|CDS|2961238381|+|(...TRUNCATED)
["2961237444|Ga0149631_01|IG|IG_000747|+|947343:947730","2961237444|Ga0149631_01|IG|IG_000748|+|9485(...TRUNCATED)
["MDFQAIKNTARQARRYVVTMNHKAGKGHTGADLSEIDIICTLYMAVMDRGNARPDQDRFILSKGHGAGGFYCSCAAMGLLDPAVLDQFMGDDTLLAGH(...TRUNCATED)
["TCGAAAGACTCCTGCACCTGTCAGTTCCCGCCGGGCGGTTTGCCACGGCAACTCCTTATTGATGCGCTGAATTTTAGCTCGCGATTATTGATAAAGCT(...TRUNCATED)
[true,true,true,true,true,true,true,true,true,true,true,false,false,true,true,false,false,false,fals(...TRUNCATED)
[0,1,3,5,7,9,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,43,44,45,47,48,50,52,54,56,57,59,60,(...TRUNCATED)
[2,4,6,8,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,46,49,51,53,55,58,62,64,66,68,70,72,74,76,7(...TRUNCATED)
["2961237444|Ga0149631_01|CDS|2961238402|+|978533:979348","2961237444|Ga0149631_01|CDS|2961238403|+|(...TRUNCATED)
["2961237444|Ga0149631_01|IG|IG_000768|+|979638:979661","2961237444|Ga0149631_01|IG|IG_000769|+|9820(...TRUNCATED)
["SESEKQQVSALSQLAAGLAGGLATGDTAGAVTGGQAGKNAVENNALSDLVDAVSQGKTPQQVAEERVDAENERYKQQNCAGMSAEACSVKMYTERREE(...TRUNCATED)
["GGTAGCGGGGCTCACGGCATCCCA","T","AGTAACAAAATCCCGGCCAATTCCGCCGACTAAAGTCGGCGGTAGTTGAGCCCGCGACTCCGCTTTT(...TRUNCATED)
[true,true,true,true,true,true,true,true,true,false,true,true,false,false,true,false,true,true,false(...TRUNCATED)
[1,3,5,7,9,11,13,15,17,19,20,22,24,26,28,29,31,33,35,37,39,41,43,45,46,48,50,51,53,55,57,59,61,63,64(...TRUNCATED)
[0,2,4,6,8,10,12,14,16,18,21,23,25,27,30,32,34,36,38,40,42,44,47,49,52,54,56,58,60,62,66,68,70,72,74(...TRUNCATED)
["2961237444|Ga0149631_02|CDS|2961238886|-|1910:3265","2961237444|Ga0149631_02|CDS|2961238887|-|3418(...TRUNCATED)
["2961237444|Ga0149631_02|IG|IG_000001|+|1874:1909","2961237444|Ga0149631_02|IG|IG_000002|+|3266:341(...TRUNCATED)
["MLSKFKRSKHQQHLAQLPKLPQTVADVRTLYAPSDFRTTLLDAIANATQRIYLVALYLEHDDAGREILNALYQAKQRRPELEICVLVDWHRAQRGRIG(...TRUNCATED)
["TAAAAACCCCGGCCTTGGCCGGGGTCAGAGTAGATC","CACAGTGCGTTTCTTCTCTCATGATTGATGGCCGGAACGCCACAGGCATAAAAACATTA(...TRUNCATED)
[false,false,false,false,true,false,false,false,false,false,false,false,true,false,false,false,false(...TRUNCATED)
[0,2,4,5,7,8,10,12,13,15,17,19,21,23,25,27,28,29,31,33,35,37,39,40,42,44,46,48,49,51,53,55,57,59,61,(...TRUNCATED)
[1,3,6,9,11,14,16,18,20,22,24,26,30,32,34,36,38,41,43,45,47,50,52,54,56,58,60,62,64,66,68,70,72,75,7(...TRUNCATED)
["2961237444|Ga0149631_02|CDS|2961239290|-|420293:420622","2961237444|Ga0149631_02|CDS|2961239291|-|(...TRUNCATED)
["2961237444|Ga0149631_02|IG|IG_000320|+|420623:420701","2961237444|Ga0149631_02|IG|IG_000321|+|4214(...TRUNCATED)
["MQRFILFFIFLAVIGTHDSSVFAAISLNEKWEQNDRGKWSLSITPRGTFDLTNDMKTVKCISEVGCEGMWKIDVRGRGSIFCDPKVLAPRGMTGSAYV(...TRUNCATED)
["TATTTCCCAGACTCCGTTGATGATTACGCTTCATTGGGAGGCTACGCTGTGAATAAATAGCGGCCACTTATATGATTAT","AAATAACCTTCCTCCC(...TRUNCATED)
[false,false,false,false,false,false,true,false,false,true,true,true,true,true,true,true,true,true,t(...TRUNCATED)
[1,3,5,7,9,10,12,14,16,18,20,22,24,26,28,30,32,34,35,37,39,41,42,44,46,48,50,52,54,56,58,60,62,63,65(...TRUNCATED)
[0,2,4,6,8,11,13,15,17,19,21,23,25,27,29,31,33,36,38,40,43,45,47,49,51,53,55,57,59,61,64,66,68,70,72(...TRUNCATED)
["2961237444|Ga0149631_03|CDS|2961239517|+|394:4233","2961237444|Ga0149631_03|CDS|2961239518|+|4297:(...TRUNCATED)
["2961237444|Ga0149631_03|IG|IG_000001|+|379:393","2961237444|Ga0149631_03|IG|IG_000002|+|4234:4296"(...TRUNCATED)
["VSKRSPLFKHKPLAWAKSEVKPATHIDTPMGKVPDPLYTTIWVEQALPEMGEVNIGPHLLLSRHTVPLNLPEGWIGMVAVGAEAVGAVLDEQAWQTVA(...TRUNCATED)
["TACAGGGAGTTACTT","CCGTGAAATGACCCTCTCCAGGAAATGGATGCATGTTGGCGAGGGTCTTTTAAAAGGGGATAT","TATCGGGGGGAGGG(...TRUNCATED)
[true,true,true,false,false,false,false,false,true,true,true,true,true,false,true,true,true,true,fal(...TRUNCATED)
[1,3,5,7,9,11,13,15,17,18,20,22,24,26,28,30,32,34,36,38,39,40,41,43,45,47,48,50,52,54,56,58,59,61,63(...TRUNCATED)
[0,2,4,6,8,10,12,14,16,19,21,23,25,27,29,31,33,35,37,42,44,46,49,51,53,55,57,60,62,64,66,68,70,72,74(...TRUNCATED)
["2961237444|Ga0149631_04|CDS|2961240053|-|1197:3101","2961237444|Ga0149631_04|CDS|2961240054|-|3107(...TRUNCATED)
["2961237444|Ga0149631_04|IG|IG_000001|+|1124:1196","2961237444|Ga0149631_04|IG|IG_000002|+|3102:310(...TRUNCATED)
["MSLISMSGAWLSFSDAPLLDNTEIHIEDNERVCLVGRNGAGKSTLLKILGKEIPLDDGRVIYEQDLIVARLQQDPPRNIGGSVFDFVAEGVAEQAEHL(...TRUNCATED)
["ATTCCTCCTAAATAACGTTGCTCACCGGCACGTCGATACCGCCCGCAGCAGCGCGCGGGCGGTATCGCAACGG","AGTAA","TATAGCTAATCCGC(...TRUNCATED)
[false,false,true,false,false,true,true,true,true,true,false,true,true,true,true,true,false,false,fa(...TRUNCATED)
[0,1,2,4,6,8,10,12,14,16,18,20,22,24,25,27,29,31,33,35,37,38,40,41,43,45,47,49,51,53,55,57,59,61,63,(...TRUNCATED)
[3,5,7,9,11,13,15,17,19,21,23,26,28,30,32,34,36,39,42,44,46,48,50,52,54,56,58,60,62,64,66,70,72,74,7(...TRUNCATED)
["2961237444|Ga0149631_04|CDS|2961240344|+|325958:328132","2961237444|Ga0149631_04|CDS|2961240345|-|(...TRUNCATED)
["2961237444|Ga0149631_04|IG|IG_000244|+|329706:329716","2961237444|Ga0149631_04|IG|IG_000245|+|3302(...TRUNCATED)
["LFLLLLLTLNVFAPPALAQNAPPAPADKSEQQKAAYAALADLLQDDKARAALINHLKQAAGDAPAAAPTTPEESTPATLSDSLNSLAQEGIGTFNQKL(...TRUNCATED)
["ATCCACCTCGA","CGGCAGCTCCCGAAACGGTGAAGGGGGCGCCTGGCGCCATCGAGTGAATATGAACGAACGTTCGTTCATATTTAAGGATAGCAT(...TRUNCATED)
[true,false,false,false,false,false,true,true,true,false,false,false,false,true,false,false,false,fa(...TRUNCATED)
End of preview. Expand in Data Studio

OG: An Open Genomic Dataset

The OG dataset is a subset of the Open MetaGenomic dataset (OMG).
OG contains high quality prokaryotic and viral genomes with taxonomic information, and is roughly 10x smaller than OMG.
The dataset is pre-processed into a mixed-modality dataset, with translated amino acids for protein coding sequences, and nucleic acids for intergenic sequences.

Two additional datasets are available on the HuggingFace Hub:

  • OMG: The full Open Metagenomic dataset with 3.1T base pairs.
  • OMG_prot50: A protein-only dataset generated by clustering OMG at 50% sequence identity, resulting in 207M protein sequences.

See https://github.com/TattaBio/OMG for details and example tokenization script.

Use

import datasets
ds = datasets.load_dataset('tattabio/OG')

To preview the dataset without downloading, load in streaming mode:

import datasets
ds = datasets.load_dataset('tattabio/OG', streaming=True)['train']
print(next(iter(ds)))

Format

Each row of the dataset represents a genomic scaffold, as an ordered list of amino acid coding sequences (CDS) and nucleotide intergenic sequences (IGS).

Feature Description Example
CDS_seqs A list of strings representing the amino acid CDS sequences. ['MALTKVEKRNR...', 'MLGIDNIERVK...', 'MATIKVKQVR...', 'MNLSNIKPAS...']
IGS_seqs A list of strings representing the nucleotide IGS sequences. ['AATTTAAGGAA', 'TTTTAAAAGTATCGAAAT', 'TTTTTAAAGAAAA']
CDS_position_ids A list of integers representing the position of each CDS element in the scaffold. [1, 3, 5, 6]
IGS_position_ids A list of integers representing the position of each IGS element in the scaffold. [0, 2, 4]
CDS_ids A list of string identifiers for each CDS element. ['7000000126|C1821366|CDS|gene_115413|+|84:437', '7000000126|C1821366|CDS|gene_115414|+|456:977', '7000000126|C1821366|CDS|gene_115415|+|991:1167', '7000000126|C1821366|CDS|gene_115416|+|1168:1689']
IGS_ids A list of string identifiers for each IGS element. ['7000000126|C1821366|IG|IG_000001|+|73:83', '7000000126|C1821366|IG|IG_000002|+|438:455', '7000000126|C1821366|IG|IG_000003|+|978:990']
CDS_orientations A list of booleans indicating the orientation of each CDS. True represents the forward strand, and False represents the reverse strand. [True, True, True, False]

The format for the CDS and IGS id fields is: sample_accession|contig_id|feature_type|gene_id|strand|start:end

Citation

BibTeX:

@article{Cornman2024,
  title = {The OMG dataset: An Open MetaGenomic corpus for mixed-modality genomic language modeling},
  url = {https://www.biorxiv.org/content/early/2024/08/17/2024.08.14.607850},
  DOI = {10.1101/2024.08.14.607850},
  publisher = {Cold Spring Harbor Laboratory},
  author = {Cornman, Andre and West-Roberts, Jacob and Camargo, Antonio Pedro and Roux, Simon and Beracochea, Martin and Mirdita, Milot and Ovchinnikov, Sergey and Hwang, Yunha},
  year = {2024},
}
Downloads last month
444

Collection including tattabio/OG