Skip to content

Commit fe9d868

Browse files
committed
Merge origin/master: integrate new docs and refget updates
2 parents 0adc385 + af3ea9d commit fe9d868

15 files changed

Lines changed: 283 additions & 174 deletions

docs/bbconf/changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) and [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) format.
44

5+
6+
### [0.13.0] - 2025-12-01
7+
### Added:
8+
- UMAP calculation
9+
10+
511
### [0.12.0] - 2025-09-11
612
### Added:
713
- New qdrant semantic search

docs/bedbase/user/bbclient.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Full usage documentation is available in the Usage documentation is available [B
5353
RegionSet is a Python/Rust/R representation of a BED file. It allows user to compute identifiers, save bed files,
5454
iterate through regions, and perform other operations on the BED file.
5555

56-
How to install and use RegionSet in Python is described in the [RegionSet documentation](../../gtars/python/regionset.md).
56+
How to install and use RegionSet in Python is described in the [RegionSet documentation](../../gtars/models.md).
5757

5858
Quick example:
5959

docs/bedbase/user/bed-analyzer.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
🚧 This documentation is under active development and will be updated soon. 🚧
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
🚧 This documentation is under active development and will be updated soon. 🚧

docs/bedhost/changelog.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) and [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) format.
44

5+
## [0.12.0] -- 2025-12-01
6+
### Added:
7+
- umap calculation [API]
8+
- BED-analyzer (qc), which is backed by gtars-wasm package [UI]
9+
- New improved home page [UI]
10+
- Added visualization of the UMAP, and interactive [UI]
11+
12+
513
## [0.11.0] -- 2025-09-11
614
### Added:
715
- Added umap visualizations of bed embeddings

docs/citations.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,26 @@ Components of BEDbase and geniml have been published independently. Here, we sho
88

99
Thanks for citing us! If you use BEDbase, geniml, or their components in your research, here are papers you can cite.
1010

11-
| If you use... | Please cite ... |
12-
|---------------|-----------------|
13-
| `region2vec` embeddings | Gharavi et al. (2021) *Bioinformatics* |
14-
| `bedspace` search and embeddings | Gharavi et al. (2024) *Bioengineering* |
11+
| If you use... | Please cite ... |
12+
|-------------------------------------------|-----------------|
13+
| `region2vec` embeddings | Gharavi et al. (2021) *Bioinformatics* |
14+
| `bedspace` search and embeddings | Gharavi et al. (2024) *Bioengineering* |
1515
| `scEmbed` single-cell embedding framework | LeRoy et al. (2024) *NAR Genomics and Bioinformatics* |
16-
| `geniml` region set evaluations | Zheng et al. (2024) *NAR Genomics and Bioinformatics* |
17-
| `geniml hmm` module | Rymuza et al. (2024) *Nucleic Acis Research* |
18-
| `bedbase` database | Unpublished |
16+
| `geniml` region set evaluations | Zheng et al. (2024) *NAR Genomics and Bioinformatics* |
17+
| `geniml hmm` module | Rymuza et al. (2024) *Nucleic Acis Research* |
18+
| `bedbase` database | Unpublished |
19+
| `tokenizers` module | LeRoy et al. (2025) *arXiv* |
20+
| `atacformer` foundation model | LeRoy et al. (2025) *bioRxiv* |
1921

2022

2123
## Full citation information for manuscripts
2224

25+
- **LeRoy et al. (2025).** *Atacformer: A transformer-based foundation model for analysis and interpretation of ATAC-seq data*.
26+
*bioRxiv*. [10.1101/2025.11.03.685753](https://doi.org/10.1101/2025.11.03.685753)
27+
28+
- **LeRoy et al. (2025).** *Fast, memory-efficient genomic interval tokenizers for modern machine learning*.
29+
*arXiv*. [10.48550/arXiv.2511.01555](https://doi.org/10.48550/arXiv.2511.01555)
30+
2331
- **Gharavi et al. (2024).** *Joint representation learning for retrieval and annotation of genomic interval sets*.
2432
*Bioengineering*. [10.3390/bioengineering11030263](http://dx.doi.org/10.3390/bioengineering11030263)
2533

docs/geniml/tutorials/fine-tune-region2vec-model.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Fine-tuning a model is a way to adapt a pre-trained model to a new task. For exa
55
## Get a pretrained model
66
To begin, we need to get a pretrained model. We can get one from huggingface:
77
```python
8-
from geniml.region2vec import Region2VecExModel
8+
from geniml.region2vec.main import Region2VecExModel
99

1010
model = Region2VecExModel("databio/r2v-ChIP-atlas-hg38-v2")
1111
```

docs/geniml/tutorials/train-region2vec.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ from multiprocessing import cpu_count
2121

2222
from geniml.io import RegionSet
2323
from geniml.tokenization import TreeTokenizer
24-
from geniml.region2vec import Region2VecExModel
24+
from geniml.region2vec.main import Region2VecExModel
2525
from rich.progress import track
2626

2727

docs/geniml/tutorials/use-pretrained-region2vec-model.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ To use one of our pre-trained models, simply import the `Region2VecExModel` and
66

77
```python
88
from geniml.io import Region
9-
from geniml.region2vec import Region2VecExModel
9+
from geniml.region2vec.main import Region2VecExModel
1010

1111
model = Region2VecExModel("databio/r2v-encode-hg38")
1212
```

docs/gtars/models.md

Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
# Models and Region Set objects in Gtars
2+
3+
Gtars has multiple objects (structs/models) for representation of genomic regions and other related data.
4+
5+
### 🟢 Region
6+
7+
Region is Python representation of a genomic region. e.g. `chr1:100-200` + additional information.
8+
9+
#### Example
10+
11+
=== "Python"
12+
```python
13+
from gtars.models import Region
14+
15+
# Create a Region
16+
genomic_region = Region(chr="chr1",
17+
start=100,
18+
end=200,
19+
rest="peak1")
20+
print(genomic_region)
21+
22+
```
23+
24+
=== "Rust"
25+
```rust
26+
use gtars::models::Region;
27+
28+
// Create a Region
29+
let genomic_region: Region = Region { chr: "chr1".to_string(),
30+
start: 100,
31+
end: 200,
32+
rest: Some("peak1".to_string())
33+
},
34+
let identifier = genomic_region.digest();
35+
36+
println!("{:?}", identifier);
37+
38+
```
39+
40+
41+
### 🟢 RegionSet
42+
43+
RegionSet is Python representation of a genomic region set, commonly named as BED file.
44+
45+
46+
#### Quick example
47+
Open BED file from URL and get its identifier.
48+
49+
=== "Python"
50+
```python
51+
52+
from gtars.models import RegionSet
53+
54+
# Create a RegionSet from a url, or lcoal BED file.
55+
rs = RegionSet("https://data2.bedbase.org/files/d/a/dafd661aa70590999e0ff9e1980217db.bed.gz")
56+
57+
# Get identifier for the RegionSet
58+
rs.identifier
59+
60+
print(rs)
61+
62+
```
63+
=== "Rust"
64+
```rust
65+
use gtars::models::RegionSet;
66+
67+
// Create a RegionSet from a url, or lcoal BED file.
68+
let rs = RegionSet::try_from("https://data2.bedbase.org/files/d/a/dafd661aa70590999e0ff9e1980217db.bed.gz").unwrap();
69+
70+
// Get identifier for the RegionSet
71+
let id = rs.identifier();
72+
73+
println!("{:?}", rs);
74+
```
75+
76+
=== "TypeScript"
77+
78+
❗ Note: This is test example and may require additional setup to run.
79+
80+
```typescript
81+
import init from '@databio/gtars';
82+
import { RegionSet } from '@databio/gtars';
83+
84+
init();
85+
86+
export type BedEntry1 = [string, number, number, string];
87+
88+
// Define entries (regions)
89+
export const entries1: BedEntry1[] = [
90+
['chr1', 100, 200, 'peak1'],
91+
['chr2', 150, 250, 'peak2'],
92+
['chr3', 300, 400, 'peak3'],
93+
];
94+
95+
// Create a Region
96+
const rs = new RegionSet(entries1);
97+
98+
console.log(rs);
99+
100+
```
101+
102+
❗ Note: RegionSet can be created from a local file path, URL, or by passing a list (vector) or Region objects.
103+
104+
#### Main commands in Python
105+
106+
- Load a BED file from local path or URL
107+
```python
108+
rs = RegionSet("path/to/bedfile.bed")
109+
```
110+
- Get number of regions
111+
```python
112+
len(rs)
113+
```
114+
- Calculate mean reagion width
115+
```python
116+
rs.mean_region_width()
117+
```
118+
- Get last base pair location for each chromosome
119+
```python
120+
rs.get_max_end_per_ch()
121+
```
122+
- Get number of base pairs in the region set
123+
```python
124+
rs.get_nucleotide_length()
125+
```
126+
- Save the regionSet as a BED file
127+
```python
128+
rs.to_bed("path/to/save/bedfile.bed")
129+
rs.to_bed_gz("path/to/save/bedfile.bed.gz") # gzipped
130+
```
131+
- Save the regionSet as a bigBed file
132+
```python
133+
rs.to_bigbed("path/to/save/bedfile.bb", chrom_sizes="path/to/chrom.sizes")
134+
```

0 commit comments

Comments
 (0)