Skip to content

Commit

Permalink
citations
Browse files Browse the repository at this point in the history
  • Loading branch information
pnrobinson committed Sep 30, 2023
1 parent f13c670 commit dc9de53
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 39 deletions.
39 changes: 0 additions & 39 deletions archive/publications.html
Original file line number Diff line number Diff line change
Expand Up @@ -1121,45 +1121,6 @@ <h2>2000</h2>
</p>

<br/>
<h2>1990s</h2>

<p>Booms, P., Cisler, J., Mathews, K. R., Godfrey, M., Tiecke, F., Kaufmann, U. C., Vetter, U., Hagemeier, C., and <b>Robinson, P. N.</b> (1999). Novel exon skipping mutation in the fibrillin-1 gene: two ’hot spots’ for the neonatal Marfan syndrome. <em>Clin. Genet.</em> 55, 110–117.<br/> <a href="http://www.ncbi.nlm.nih.gov/pubmed/10189088" target="_blank">PubMed</a>
</p>

<p>Gille, C., Gille, A., Booms, P., <b>Robinson, P. N.</b>, and Nurnberg, P. (1998). Bipolar clamping improves the sensitivity of mutation detection by temperature gradient gel electrophoresis. <em>Electrophoresis</em> 19, 1347–1350.<br/> <a href="http://www.ncbi.nlm.nih.gov/pubmed/9694279" target="_blank">PubMed</a>
</p>

<p>Booms, P., Withers, A. P., Boxer, M., Kaufmann, U. C., Hagemeier, C., Vetter, U., and <b>Robinson, P. N.</b> (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. <em>Hum. Genet.</em> 100, 195–200.<br/> <a href="http://www.ncbi.nlm.nih.gov/pubmed/9254848" target="_blank">PubMed</a>
</p>


</div>

</article><!-- #post-26 -->



</div><!-- #content .site-content -->
</div><!-- #primary .content-area -->



</div><!-- .full-container -->
</div><!-- #main .site-main -->



<footer id="colophon" class="site-footer" role="contentinfo">

<div id="footer-widgets" class="full-container">
</div><!-- #footer-widgets -->
</footer><!-- #colophon .site-footer -->

</div><!-- #page-wrapper -->


<a href="#" id="scroll-to-top" title="Back To Top"><span class="vantage-icon-arrow-up"></span></a><script type='text/javascript' src='js/datepicker.min.js?ver=1.11.4'></script>


</body>
</html>
23 changes: 23 additions & 0 deletions data/citations.yml
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
9 changes: 9 additions & 0 deletions docs/publications.md
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/)
52 changes: 52 additions & 0 deletions scripts/make_pub_page.py
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())



0 comments on commit dc9de53

Please sign in to comment.