Permalink
Browse files

First draft of bcbio-nextgen paper for Frotiers submission

  • Loading branch information...
1 parent 75e0078 commit fd187e1c8073febfe3059cde609086e7d60c4f39 @chapmanb committed Dec 7, 2013
@@ -0,0 +1,15 @@
+all: clean chapman_bcbio.bib
+ pdflatex chapman_bcbio.tex
+ bibtex chapman_bcbio
+ pdflatex chapman_bcbio.tex
+ pdflatex chapman_bcbio.tex
+
+chapman_bcbio.bib:
+ python fix_bibfile.py bcbio-nextgen.bib chapman_bcbio.bib
+
+clean:
+ rm -f chapman_bcbio.aux
+ rm -f chapman_bcbio.bbl
+ rm -f chapman_bcbio.blg
+ rm -f chapman_bcbio.log
+

Large diffs are not rendered by default.

Oops, something went wrong.
Binary file not shown.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,15 @@
+import sys
+
+in_file, out_file = sys.argv[1:]
+
+with open(in_file) as in_handle:
+ with open(out_file, "w") as out_handle:
+ for line in in_handle:
+ if line.strip().startswith("language"):
+ line = None
+ elif line.strip().startswith("@misc"):
+ base, cite = line.split("{")
+ cite_parts = [x.strip() for x in cite.split("_") if x.strip()]
+ line = base + "{" + cite_parts[0] + ",\n"
+ if line:
+ out_handle.write(line)
Oops, something went wrong.

0 comments on commit fd187e1

Please sign in to comment.