cUTRGen / README.md
ZhweCheng's picture
Point code and usage links to HIM-AIM/cUTRGen
ed25394 verified
|
Raw History Blame Contribute Delete
2.43 kB
metadata
tags:
  - biology
  - rna
  - utr
  - pretraining
configs:
  - config_name: c5UTRGen
    data_files:
      - split: train
        path: c5UTRGen/train.csv
      - split: validation
        path: c5UTRGen/validation.csv
      - split: test
        path: c5UTRGen/test.csv
  - config_name: c3UTRGen
    data_files:
      - split: train
        path: c3UTRGen/train.csv
      - split: validation
        path: c3UTRGen/validation.csv
      - split: test
        path: c3UTRGen/test.csv

cUTRGen paired pretraining data

Paired coding sequences (CDSs) and natural untranslated regions (UTRs) used for c5UTRGen and c3UTRGen pretraining, validation and independent testing. Each row contains one CDS–UTR pair. Sequences use the DNA alphabet (A, C, G, T) in 5′ to 3′ transcript orientation.

Files and sample counts

Directory Training pairs Validation pairs Independent test pairs Columns
c5UTRGen/ 885,219 2,786 4,183 cds,five_prime_utr
c3UTRGen/ 801,331 2,977 4,434 cds,three_prime_utr

Each directory contains train.csv, validation.csv and test.csv. The test split is the independent test set. Training sets retain one-to-many CDS–UTR relationships. Validation sets support model selection; independent test sets support final evaluation.

Fields

  • cds: coding sequence paired with the UTR.
  • five_prime_utr: natural 5′ UTR paired with the CDS in c5UTRGen records.
  • three_prime_utr: natural 3′ UTR paired with the CDS in c3UTRGen records.

In validation and test files, c5UTRGen CDSs contain up to the first 240 nt and 5′ UTRs up to the last 256 nt. c3UTRGen CDSs contain up to the last 228 nt and 3′ UTRs up to the first 256 nt.

Download

From the cloned code repository root:

from huggingface_hub import snapshot_download

snapshot_download(
    repo_id="ZhweCheng/cUTRGen",
    repo_type="dataset",
    local_dir="../cUTRGen_data",
)

For one model only, add allow_patterns=["c5UTRGen/*"] or allow_patterns=["c3UTRGen/*"].

The datasets library can also read either configuration:

from datasets import load_dataset

train = load_dataset("ZhweCheng/cUTRGen", "c5UTRGen", split="train", streaming=True)

Use "c3UTRGen" for the 3′ UTR data and "validation" or "test" for the other splits.

Code: HIM-AIM/cUTRGen. Model weights: ZhweCheng/cUTRGen.