Skip to content

Commit

Permalink
Add PubMed and PMC contact and update PMC information (#968)
Browse files Browse the repository at this point in the history
Closes #965
Closes #967 
Closes #966
  • Loading branch information
cthoyt authored Oct 30, 2023
1 parent 047a772 commit 9c88bc4
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 19 deletions.
40 changes: 31 additions & 9 deletions src/bioregistry/data/bioregistry.json
Original file line number Diff line number Diff line change
Expand Up @@ -79079,6 +79079,18 @@
"prefix": "PMC",
"uri_format": "http://europepmc.org/articles/PMC$1"
},
"comment": "Note that the Europe PMC instance redirects canonical local unique identifiers from https://europepmc.org/articles/PMC3084216 to https://europepmc.org/article/PMC/3084216. However, this is an implementation detail and does not reflect the official format of a PMC identifier, which indeed does include `PMC` at the beginning of the local unique identifier",
"contact": {
"email": "[email protected]",
"github": "jeffbeckncbi",
"name": "Jeff Beck",
"orcid": "0000-0002-1798-9797"
},
"example_extras": [
"PMC7418728",
"PMC7418728.1",
"PMC7418728.2"
],
"fairsharing": {
"abbreviation": "PMC",
"description": "PubMed Central (PMC) is the U.S. National Institutes of Health (NIH) digital archive of biomedical and life sciences journal literature.",
Expand Down Expand Up @@ -79135,15 +79147,6 @@
"namespaceEmbeddedInLui": false,
"pattern": "PMC\\d+",
"prefix": "pmc",
"providers": [
{
"code": "ncbi",
"description": "PubMed Central",
"homepage": "https://www.ncbi.nlm.nih.gov/pmc/",
"name": "PubMed Central",
"uri_format": "https://www.ncbi.nlm.nih.gov/pmc/articles/$1/?tool=pubmed"
}
],
"sampleId": "PMC3084216",
"uri_format": "http://europepmc.org/articles/$1"
},
Expand All @@ -79158,6 +79161,7 @@
"uri_format": "http://europepmc.org/articles/$1"
},
"name": "PubMed Central",
"pattern": "^PMC\\d+(\\.\\d+)?$",
"prefixcommons": {
"description": "PubMed Central (PMC) is the U.S. National Institutes of Health (NIH) digital archive of biomedical and life sciences journal literature.",
"example": "PMC3084216",
Expand All @@ -79173,6 +79177,15 @@
],
"uri_format": "http://www.ncbi.nlm.nih.gov/pmc/articles/$1/?tool=pmcentrez"
},
"providers": [
{
"code": "ncbi.pmc",
"description": "PubMed Central",
"homepage": "https://www.ncbi.nlm.nih.gov/pmc/",
"name": "PubMed Central",
"uri_format": "https://www.ncbi.nlm.nih.gov/pmc/articles/$1"
}
],
"publications": [
{
"doi": "10.1093/nar/gkr1184",
Expand All @@ -79189,6 +79202,9 @@
"year": 2010
}
],
"references": [
"https://github.com/biopragmatics/bioregistry/issues/965"
],
"synonyms": [
"PMC",
"PMCID"
Expand Down Expand Up @@ -82914,6 +82930,12 @@
"obsolete": false,
"prefix": "000302"
},
"contact": {
"email": "[email protected]",
"github": "jeffbeckncbi",
"name": "Jeff Beck",
"orcid": "0000-0002-1798-9797"
},
"edam": {
"description": "PubMed unique identifier of an article.",
"name": "PubMed",
Expand Down
9 changes: 0 additions & 9 deletions src/bioregistry/data/external/miriam/processed.json
Original file line number Diff line number Diff line change
Expand Up @@ -7967,15 +7967,6 @@
"namespaceEmbeddedInLui": false,
"pattern": "PMC\\d+",
"prefix": "pmc",
"providers": [
{
"code": "ncbi",
"description": "PubMed Central",
"homepage": "https://www.ncbi.nlm.nih.gov/pmc/",
"name": "PubMed Central",
"uri_format": "https://www.ncbi.nlm.nih.gov/pmc/articles/$1/?tool=pubmed"
}
],
"sampleId": "PMC3084216",
"uri_format": "http://europepmc.org/articles/$1"
},
Expand Down
1 change: 1 addition & 0 deletions src/bioregistry/external/miriam.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def get_miriam(force_download: bool = False, force_process: bool = False):
("ega.study", "omicsdi"),
# see discussion at https://github.com/biopragmatics/bioregistry/pull/944
("bioproject", "ebi"),
("pmc", "ncbi"),
}


Expand Down
6 changes: 5 additions & 1 deletion tests/test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,11 @@ def test_providers(self):
for provider in resource.providers:
with self.subTest(prefix=prefix, code=provider.code):
self.assertNotEqual(provider.code, prefix)
self.assertNotIn(provider.code, self.metaregistry)
self.assertNotIn(
provider.code,
set(self.metaregistry),
msg="Provider code is duplicate of metaregistry prefix.",
)
self.assertNotIn(provider.code, {"custom", "default"})
self.assertEqual(
provider.code.lower(),
Expand Down

0 comments on commit 9c88bc4

Please sign in to comment.