sddb.citations.citation_entries#
- sddb.citations.citation_entries(results: SpatialDataCohort, *, bib_url: str | None = None) tuple[str, int, int]#
Return
(BibTeX text, n_published, n_fallback)that cite every study inresults.bib_urldefaults tocitations.bibnext to the catalog. A study whosestudy_idis a key in that file gets its published entry. Every other study, and every dataset without astudy_id, gets a@miscfallback entry keyed by thestudy_id(or the uid). It cites the dataset page on the website and carries the title, DOI, year, uid and license from the catalog. The datasets of one study share one entry.The published file has one entry per study, and a GEO study is one sample, so a paper with many samples appears many times. Published entries that share a DOI are merged into one: the first (by key) keeps its key and fields, and its
notegains "covers samples: <key>, ..." with every key it stands for (the first five, then a count). Fallback entries that share a DOI merge the same way.n_publishedandn_fallbackcount the entries after merging.One warning reports the counts when there are fallback entries, because those entries should be checked before you publish. An empty cohort raises
ValueError.