Skip to content

Commit 061fd0f

Browse files
authored
Query annotation hub for populating the TxDB registry. (#5)
1 parent f710da5 commit 061fd0f

File tree

4 files changed

+97
-295
lines changed

4 files changed

+97
-295
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Changelog
22

3-
## Version 0.0.1 - 0.0.3
3+
## Version 0.0.1 - 0.0.4
44

55
- Initial release of the package with class structure and basic functionality.
66
- Fixed minor bugs handling existing resources with cache.
7+
- Download and cache Annotation Hub's sqlite metadata file for querying available TxDB objects.

src/txdb/_ahub.py

Lines changed: 2 additions & 182 deletions
Original file line numberDiff line numberDiff line change
@@ -28,185 +28,5 @@
2828
__copyright__ = "Jayaram Kancherla"
2929
__license__ = "MIT"
3030

31-
TXDB_CONFIG = {
32-
"TxDb.Athaliana.BioMart.plantsmart22": {
33-
"release_date": "2016-12-22",
34-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.4/TxDb.Athaliana.BioMart.plantsmart22.sqlite",
35-
},
36-
"TxDb.Athaliana.BioMart.plantsmart25": {
37-
"release_date": "2016-12-22",
38-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.4/TxDb.Athaliana.BioMart.plantsmart25.sqlite",
39-
},
40-
"TxDb.Athaliana.BioMart.plantsmart28": {
41-
"release_date": "2016-12-22",
42-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.4/TxDb.Athaliana.BioMart.plantsmart28.sqlite",
43-
},
44-
"TxDb.Btaurus.UCSC.bosTau8.refGene": {
45-
"release_date": "2020-10-20",
46-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.12/TxDb.Btaurus.UCSC.bosTau8.refGene.sqlite",
47-
},
48-
"TxDb.Celegans.UCSC.ce11.refGene": {
49-
"release_date": "2019-05-01",
50-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.9/TxDb.Celegans.UCSC.ce11.refGene.sqlite",
51-
},
52-
"TxDb.Celegans.UCSC.ce6.ensGene": {
53-
"release_date": "2016-12-22",
54-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.4/TxDb.Celegans.UCSC.ce6.ensGene.sqlite",
55-
},
56-
"TxDb.Cfamiliaris.UCSC.canFam3.refGene": {
57-
"release_date": "2020-10-20",
58-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.12/TxDb.Cfamiliaris.UCSC.canFam3.refGene.sqlite",
59-
},
60-
"TxDb.Dmelanogaster.UCSC.dm3.ensGene": {
61-
"release_date": "2016-12-22",
62-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.4/TxDb.Dmelanogaster.UCSC.dm3.ensGene.sqlite",
63-
},
64-
"TxDb.Dmelanogaster.UCSC.dm6.ensGene": {
65-
"release_date": "2020-10-20",
66-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.12/TxDb.Dmelanogaster.UCSC.dm6.ensGene.sqlite",
67-
},
68-
"TxDb.Drerio.UCSC.danRer10.refGene": {
69-
"release_date": "2019-05-01",
70-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.9/TxDb.Drerio.UCSC.danRer10.refGene.sqlite",
71-
},
72-
"TxDb.Ggallus.UCSC.galGal4.refGene": {
73-
"release_date": "2020-10-20",
74-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.12/TxDb.Ggallus.UCSC.galGal4.refGene.sqlite",
75-
},
76-
"TxDb.Hsapiens.BioMart.igis": {
77-
"release_date": "2016-12-22",
78-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.4/TxDb.Hsapiens.BioMart.igis.sqlite",
79-
},
80-
"TxDb.Hsapiens.UCSC.hg18.knownGene": {
81-
"release_date": "2016-12-22",
82-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.4/TxDb.Hsapiens.UCSC.hg18.knownGene.sqlite",
83-
},
84-
"TxDb.Hsapiens.UCSC.hg19.knownGene": {
85-
"release_date": "2025-10-29",
86-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.22/TxDb.Hsapiens.UCSC.hg19.knownGene.sqlite",
87-
},
88-
"TxDb.Hsapiens.UCSC.hg19.lincRNAsTranscripts": {
89-
"release_date": "2016-12-22",
90-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.4/TxDb.Hsapiens.UCSC.hg19.lincRNAsTranscripts.sqlite",
91-
},
92-
"TxDb.Hsapiens.UCSC.hg38.knownGene": {
93-
"release_date": "2025-10-29",
94-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.22/TxDb.Hsapiens.UCSC.hg38.knownGene.sqlite",
95-
},
96-
"TxDb.Hsapiens.UCSC.hg38.refGene": {
97-
"release_date": "2024-04-02",
98-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.19/TxDb.Hsapiens.UCSC.hg38.refGene.sqlite",
99-
},
100-
"TxDb.Mmulatta.UCSC.rheMac3.refGene": {
101-
"release_date": "2020-10-20",
102-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.12/TxDb.Mmulatta.UCSC.rheMac3.refGene.sqlite",
103-
},
104-
"TxDb.Mmulatta.UCSC.rheMac8.refGene": {
105-
"release_date": "2020-10-20",
106-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.12/TxDb.Mmulatta.UCSC.rheMac8.refGene.sqlite",
107-
},
108-
"TxDb.Mmulatta.UCSC.rheMac10.refGene": {
109-
"release_date": "2021-10-08",
110-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.14/TxDb.Mmulatta.UCSC.rheMac10.refGene.sqlite",
111-
},
112-
"TxDb.Mmusculus.UCSC.mm10.ensGene": {
113-
"release_date": "2016-12-22",
114-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.4/TxDb.Mmusculus.UCSC.mm10.ensGene.sqlite",
115-
},
116-
"TxDb.Mmusculus.UCSC.mm10.knownGene": {
117-
"release_date": "2019-05-01",
118-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.9/TxDb.Mmusculus.UCSC.mm10.knownGene.sqlite",
119-
},
120-
"TxDb.Mmusculus.UCSC.mm39.refGene": {
121-
"release_date": "2024-04-02",
122-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.19/TxDb.Mmusculus.UCSC.mm39.refGene.sqlite",
123-
},
124-
"TxDb.Mmusculus.UCSC.mm39.knownGene": {
125-
"release_date": "2025-03-11",
126-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.21/TxDb.Mmusculus.UCSC.mm39.knownGene.sqlite",
127-
},
128-
"TxDb.Mmusculus.UCSC.mm9.knownGene": {
129-
"release_date": "2016-12-22",
130-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.4/TxDb.Mmusculus.UCSC.mm9.knownGene.sqlite",
131-
},
132-
"TxDb.Ptroglodytes.UCSC.panTro4.refGene": {
133-
"release_date": "2020-04-27",
134-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.11/TxDb.Ptroglodytes.UCSC.panTro4.refGene.sqlite",
135-
},
136-
"TxDb.Ptroglodytes.UCSC.panTro5.refGene": {
137-
"release_date": "2020-04-27",
138-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.11/TxDb.Ptroglodytes.UCSC.panTro5.refGene.sqlite",
139-
},
140-
"TxDb.Ptroglodytes.UCSC.panTro6.refGene": {
141-
"release_date": "2019-10-29",
142-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.10/TxDb.Ptroglodytes.UCSC.panTro6.refGene.sqlite",
143-
},
144-
"TxDb.Rnorvegicus.BioMart.igis": {
145-
"release_date": "2016-12-22",
146-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.4/TxDb.Rnorvegicus.BioMart.igis.sqlite",
147-
},
148-
"TxDb.Rnorvegicus.UCSC.rn4.ensGene": {
149-
"release_date": "2016-12-22",
150-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.4/TxDb.Rnorvegicus.UCSC.rn4.ensGene.sqlite",
151-
},
152-
"TxDb.Rnorvegicus.UCSC.rn5.refGene": {
153-
"release_date": "2020-04-27",
154-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.11/TxDb.Rnorvegicus.UCSC.rn5.refGene.sqlite",
155-
},
156-
"TxDb.Rnorvegicus.UCSC.rn6.refGene": {
157-
"release_date": "2019-05-01",
158-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.9/TxDb.Rnorvegicus.UCSC.rn6.refGene.sqlite",
159-
},
160-
"TxDb.Rnorvegicus.UCSC.rn6.ncbiRefSeq": {
161-
"release_date": "2020-10-20",
162-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.12/TxDb.Rnorvegicus.UCSC.rn6.ncbiRefSeq.sqlite",
163-
},
164-
"TxDb.Rnorvegicus.UCSC.rn7.refGene": {
165-
"release_date": "2022-04-18",
166-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.15/TxDb.Rnorvegicus.UCSC.rn7.refGene.sqlite",
167-
},
168-
"TxDb.Scerevisiae.UCSC.sacCer2.sgdGene": {
169-
"release_date": "2016-12-22",
170-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.4/TxDb.Scerevisiae.UCSC.sacCer2.sgdGene.sqlite",
171-
},
172-
"TxDb.Scerevisiae.UCSC.sacCer3.sgdGene": {
173-
"release_date": "2016-12-22",
174-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.4/TxDb.Scerevisiae.UCSC.sacCer3.sgdGene.sqlite",
175-
},
176-
"TxDb.Sscrofa.UCSC.susScr3.refGene": {
177-
"release_date": "2020-04-27",
178-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.11/TxDb.Sscrofa.UCSC.susScr3.refGene.sqlite",
179-
},
180-
"TxDb.Sscrofa.UCSC.susScr11.refGene": {
181-
"release_date": "2020-04-27",
182-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.11/TxDb.Sscrofa.UCSC.susScr11.refGene.sqlite",
183-
},
184-
"TxDb.Ggallus.UCSC.galGal5.refGene": {
185-
"release_date": "2020-04-27",
186-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.11/TxDb.Ggallus.UCSC.galGal5.refGene.sqlite",
187-
},
188-
"TxDb.Ggallus.UCSC.galGal6.refGene": {
189-
"release_date": "2019-10-29",
190-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.10/TxDb.Ggallus.UCSC.galGal6.refGene.sqlite",
191-
},
192-
"TxDb.Cfamiliaris.UCSC.canFam4.refGene": {
193-
"release_date": "2021-10-08",
194-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.14/TxDb.Cfamiliaris.UCSC.canFam4.refGene.sqlite",
195-
},
196-
"TxDb.Cfamiliaris.UCSC.canFam5.refGene": {
197-
"release_date": "2021-10-08",
198-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.14/TxDb.Cfamiliaris.UCSC.canFam5.refGene.sqlite",
199-
},
200-
"TxDb.Cfamiliaris.UCSC.canFam6.refGene": {
201-
"release_date": "2023-04-06",
202-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.17/TxDb.Cfamiliaris.UCSC.canFam6.refGene.sqlite",
203-
},
204-
"TxDb.Celegans.UCSC.ce11.ensGene": {
205-
"release_date": "2022-04-18",
206-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.15/TxDb.Celegans.UCSC.ce11.ensGene.sqlite",
207-
},
208-
"TxDb.Drerio.UCSC.danRer11.refGene": {
209-
"release_date": "2019-05-01",
210-
"url": "https://mghp.osn.xsede.org/bir190004-bucket01/AnnotationHub/ucsc/standard/3.9/TxDb.Drerio.UCSC.danRer11.refGene.sqlite",
211-
},
212-
}
31+
32+
AHUB_METADATA_URL = "https://annotationhub.bioconductor.org/metadata/annotationhub.sqlite3"

0 commit comments

Comments
 (0)