-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f13c670
commit dc9de53
Showing
4 changed files
with
84 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- # Publications | ||
|
||
- pmid: 10189088 | ||
authors: Booms, P., Cisler, J., Mathews, K. R., Godfrey, M., Tiecke, F., Kaufmann, U. C., Vetter, U., Hagemeier, C., and Robinson, P. N. | ||
year: 1999 | ||
title: "Novel exon skipping mutation in the fibrillin-1 gene: two ’hot spots’ for the neonatal Marfan syndrome" | ||
journal: Clin Genet | ||
volume: 55 | ||
pages: 110–117 | ||
- pmid: 9694279 | ||
authors: Gille, C., Gille, A., Booms, P., Robinson, P. N., and Nurnberg, P. | ||
year: 1998 | ||
title: Bipolar clamping improves the sensitivity of mutation detection by temperature gradient gel electrophoresis | ||
journal: Electrophoresis | ||
volume: 19 | ||
pages: 1347–1350 | ||
- pmid: 9254848 | ||
authors: Booms, P., Withers, A. P., Boxer, M., Kaufmann, U. C., Hagemeier, C., Vetter, U., and Robinson, P. N. | ||
year: 1997 | ||
title: A novel de novo mutation in exon 14 of the fibrillin-1 gene associated with delayed secretion of fibrillin in a patient with a mild Marfan phenotype. | ||
journal: Hum. Genet | ||
volume: 100 | ||
pages: 195–200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Publications | ||
|
||
|
||
Booms, P, Cisler, J, Mathews, KR, Godfrey, M, Tiecke, F, Kaufmann, UC, Vetter, U, Hagemeier, C, and **Robinson, PN**. 1999 Novel exon skipping mutation in the fibrillin-1 gene: two ’hot spots’ for the neonatal Marfan syndrome *Clin Genet* **55**:110–117 | ||
[PMID:10189088](https://pubmed.ncbi.nlm.nih.gov/10189088/) | ||
Gille, C, Gille, A, Booms, P, **Robinson, PN**, and Nurnberg, P. 1998 Bipolar clamping improves the sensitivity of mutation detection by temperature gradient gel electrophoresis *Electrophoresis* **19**:1347–1350 | ||
[PMID:9694279](https://pubmed.ncbi.nlm.nih.gov/9694279/) | ||
Booms, P, Withers, AP, Boxer, M, Kaufmann, UC, Hagemeier, C, Vetter, U, and **Robinson, PN**. 1997 A novel de novo mutation in exon 14 of the fibrillin-1 gene associated with delayed secretion of fibrillin in a patient with a mild Marfan phenotype. *Hum. Genet* **100**:195–200 | ||
[PMID:9254848](https://pubmed.ncbi.nlm.nih.gov/9254848/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import yaml | ||
import re | ||
from collections import defaultdict | ||
|
||
class Publication: | ||
|
||
def __init__(self, dict): | ||
self._pmid = dict.get('pmid', 'n/a') | ||
self._authors = dict.get('authors', 'n/a') | ||
self._year = int(dict.get('year', 'n/a')) | ||
self._title = dict.get('title', 'n/a') | ||
self._journal = dict.get('journal', 'n/a') | ||
self._volume = dict.get('volume', 'n/a') | ||
self._pages = dict.get('pages', 'n/a') | ||
|
||
|
||
@property | ||
def year(self): | ||
return self._year | ||
|
||
|
||
def get_markdown(self): | ||
authors = self._authors | ||
authors = re.sub(r"\.\s?", "", authors) | ||
authors = authors.replace("Robinson, PN", "**Robinson, PN**") | ||
mdown = f"{authors}. {self._year} {self._title} *{self._journal}* **{self._volume}**:{self._pages}" | ||
if self._pmid is not None: | ||
mdown = f"{mdown}\n[PMID:{self._pmid}](https://pubmed.ncbi.nlm.nih.gov/{self._pmid}/)" | ||
return mdown | ||
|
||
|
||
|
||
|
||
|
||
|
||
publication_file = "../data/citations.yml" | ||
|
||
pub_d = defaultdict(list) | ||
|
||
with open(publication_file, 'r') as fh: | ||
publications = yaml.safe_load(fh) | ||
for p in publications: | ||
pub = Publication(dict=p) | ||
year = pub.year | ||
pub_d[year].append(pub) | ||
|
||
for k, v in pub_d.items(): | ||
for item in v: | ||
print(item.get_markdown()) | ||
|
||
|
||
|