GeneCAD-BryoCAD-Small-4bryo
GeneCAD-BryoCAD-Small-4bryo is a gene annotation checkpoint trained using the GeneCAD framework with BryoCAD-Small as its frozen DNA foundation model backbone.
The annotation head was trained on four bryophyte genomes representing liverworts, hornworts, and mosses. The name 4bryo refers to these four head-training genomes, rather than the 17 genomes used for continued pre-training of BryoCAD-Small.
Model overview
| Property | Description |
|---|---|
| Task | Gene structure prediction from genomic DNA |
| Backbone | BryoCAD-Small |
| Annotation framework | GeneCAD |
| Head architecture | GeneCAD legacy architecture; token embedding dimension 128, hidden dimension 768, and eight attention layers |
| Training window length | 8,192 bp |
| Backbone training | Frozen during annotation-head training |
| Head-training data | Four bryophyte genomes |
| Transcript representation | One representative isoform per gene |
| Released checkpoint | The best.ckpt used for prediction, distributed as model.ckpt |
The four head-training genomes were:
| Species | Lineage |
|---|---|
| Marchantia polymorpha | Liverwort |
| Anthoceros agrestis | Hornwort |
| Ceratodon purpureus | Moss |
| Sphagnum magellanicum | Moss |
Intended uses
This checkpoint is intended for research on bryophyte gene annotation, including:
- Gene structure prediction from genomic DNA sequences.
- Comparative evaluation of DNA foundation model representations for genome annotation.
- Generation of candidate gene annotations for subsequent assessment with transcriptomic, protein, or other biological evidence.
This is a task-specific GeneCAD checkpoint. It is not a standalone masked language model and should not be loaded with AutoModelForMaskedLM.
Using the checkpoint
Prediction requires a compatible GeneCAD installation, its dependencies, and the BryoCAD-Small backbone. Use the GeneCAD implementation compatible with the training and prediction workflow; compatibility with other GeneCAD versions is not assumed.
First, download the checkpoint:
from huggingface_hub import hf_hub_download
checkpoint_path = hf_hub_download(
repo_id="bryocad/GeneCAD-BryoCAD-Small-4bryo",
filename="model.ckpt",
local_dir="./GeneCAD-BryoCAD-Small-4bryo",
)
print(checkpoint_path)
Then, from a compatible GeneCAD source directory, run the prediction pipeline. The following example follows the argument structure used in the BryoCAD prediction workflow:
bash predict.sh \
--input-fasta /path/to/genome.fa \
--output-dir ./genecad_predictions \
--species-id MySpecies \
--mode plant \
--top-n-contigs all \
--cpu-workers 4 \
--batch-size 1 \
--gpus 0 \
--model-checkpoint /path/to/GeneCAD-BryoCAD-Small-4bryo/model.ckpt \
--base-model bryocad/BryoCAD-Small
Replace the input and checkpoint paths with your local paths. The batch size is an example and should be adjusted to available GPU memory. The pipeline produces gene predictions in GFF format; decoding and post-processing depend on the GeneCAD implementation and settings used.
Use this checkpoint with the corresponding BryoCAD-Small backbone. Do not substitute BryoCAD-Large or PlantCAD2-Small without separately establishing compatibility and evaluating the resulting predictions.
Limitations
- Head training used four bryophyte genomes and does not represent the full diversity of bryophyte gene structures.
- Prediction quality depends on the completeness and accuracy of the training annotations, particularly for 5โฒ and 3โฒ untranslated regions.
- Training with one representative isoform per gene underrepresents alternative splicing and alternative transcript boundaries.
- Performance may vary across species, genomic regions, and annotation features. Evaluation on a species represented in training should not be interpreted as evidence of transfer to an unseen species.
- Predicted annotations should be assessed against independent biological evidence before downstream use.
Availability and reproducibility
The model artifact in this repository is model.ckpt, corresponding to the selected annotation checkpoint used for prediction. The backbone is available separately at bryocad/BryoCAD-Small.
For reproducible analyses, record the revisions of both Hugging Face repositories, the GeneCAD code version and any local modifications, the software environment, and the prediction command, including decoding and post-processing settings.
Acknowledgments
This model uses the GeneCAD annotation framework and the BryoCAD-Small backbone, which was adapted from PlantCAD2-Small through continued pre-training. Please acknowledge and cite the original GeneCAD and PlantCAD2 work when using this checkpoint, together with the BryoCAD study when available.
Model tree for bryocad/GeneCAD-BryoCAD-Small-4bryo
Base model
kuleshov-group/PlantCAD2-Small-l24-d0768