Skip to content

Commit 86e3892

Browse files
ShixiangWangcderv
andauthored
Add new article template for Bioinformatics (#297)
* Create bioinformatics journal * Remove useless files & follow PR templates * Update based on Yihui's suggestions * Fix description error * Delete bioinformatics.csl * file has been deleted so unnecessary * already set in the template file * missing new line * devtools::document() * add contributors in NEWS.md * order format alphabetically * resolve conflict on README * resolve conflict with test file Co-authored-by: Christophe Dervieux <cderv@rstudio.com>
1 parent a206e2c commit 86e3892

File tree

19 files changed

+2622
-9
lines changed

19 files changed

+2622
-9
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
.Rproj.user
33
.Rhistory
44
.RData
5+
*.log

DESCRIPTION

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ Authors@R: c(
4040
person("Robrecht", "Cannoodt", role = c("aut", "cph"), email = "rcannood@gmail.com", comment = c(ORCID = "0000-0003-3641-729X", github = "rcannood")),
4141
person("Duncan", "Luguern", role = c("aut"), email = "duncan.luguern@gmail.com"),
4242
person("David M.", "Kaplan", role = c("aut", "ctb"), email = "dmkaplan2000@gmail.com", comment = c(ORCID = "0000-0001-6087-359X", github = "dmkaplan2000")),
43+
person("Shixiang", "Wang", role = c("aut", "ctb"), email = "w_shixiang@163.com", comment = c(ORCID = "0000-0001-9855-7357")),
44+
person('Jay', 'Hesselberth', role = c('aut', 'ctb'), email = 'jay.hesselberth@gmail.com', comment = c(ORCID = '0000-0002-6299-179X')),
4345
person("Alfredo", "Hernández", role = c("ctb"), email = "aldomann.designs@gmail.com", comment = c(ORCID = "0000-0002-2660-4545"))
4446
)
4547
Description: A suite of custom R Markdown formats and templates for
@@ -49,6 +51,6 @@ Imports: utils, rmarkdown, knitr, yaml, tinytex (>= 0.19), xfun
4951
SystemRequirements: GNU make
5052
URL: https://github.com/rstudio/rticles
5153
BugReports: https://github.com/rstudio/rticles/issues
52-
RoxygenNote: 7.0.2
54+
RoxygenNote: 7.1.1
5355
Suggests: testit, bookdown, xtable
5456
Encoding: UTF-8

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export(amq_article)
88
export(ams_article)
99
export(arxiv_article)
1010
export(asa_article)
11+
export(bioinformatics_article)
1112
export(biometrics_article)
1213
export(copernicus_article)
1314
export(copernicus_journal_abbreviations)

NEWS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
rticles 0.15
22
---------------------------------------------------------------------
33

4+
5+
- Added article template for journal *Bioinformatics*. (thanks, @ShixiangWang, #297)
6+
47
- Update Copernicus Publications template to version 5.8 (thanks, @nuest, #274).
58

69
- Fixed issue with multi-line authors on JSS template when using `\AND`, which was firstly implemented in b740b19b90cd6f7afe2cd7d66456c9efa0bb4cdf (thanks, @aldomann, #292).

R/article.R

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,17 @@ arxiv_article <- function(..., keep_tex = TRUE) {
115115
)
116116
}
117117

118+
#' @section \code{bioinformatics_article}: Format for creating submissions to a Bioinformatics journal. Adapted from
119+
#' \url{https://academic.oup.com/bioinformatics/pages/submission_online}.
120+
#' @export
121+
#' @rdname article
122+
bioinformatics_article <- function(..., keep_tex = TRUE, citation_package = 'natbib') {
123+
pdf_document_format(
124+
"bioinformatics_article", keep_tex = keep_tex, citation_package = citation_package,
125+
md_extensions = "-auto_identifiers",...
126+
)
127+
}
128+
118129
#' @section \code{biometrics_article}: This format was adapted from the
119130
#' Biometrics journal.
120131
#' @export

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ The **rticles** package provides a suite of custom [R Markdown](http://rmarkdown
2727
| [AMS: American Meteorological Society](https://www.ametsoc.org/) | [@yufree](https://github.com/yufree) | [#96](https://github.com/rstudio/rticles/pull/96) | `ams_article()` |
2828
| [ASA: American Statistical Association](https://www.amstat.org/) | | [#111](https://github.com/rstudio/rticles/pull/111) | `asa_article()` |
2929
| [arXiv](https://arxiv.org/) pre-prints based on George Kour's template | [@alexpghayes](https://github.com) | [#236](https://github.com/rstudio/rticles/pull/236) | `arxiv_article()` |
30+
| [Bioinformatics](https://academic.oup.com/bioinformatics) | [@ShixiangWang](https://github.com/ShixiangWang) | [#297](https://github.com/rstudio/rticles/pull/297) | `bioinformatics_article()` |
3031
| [Biometrics](http://www.biometrics.tibs.org/) | [@daltonhance](https://github.com/daltonhance) | [#170](https://github.com/rstudio/rticles/pull/170) | `biometrics_article()` |
3132
| [Bulletin de l'AMQ](https://www.amq.math.ca/bulletin/) | [@desautm](https://github.com/desautm) | [#145](https://github.com/rstudio/rticles/pull/145) | `amq_article()` |
3233
| [Copernicus Publications](https://publications.copernicus.org) | [@nuest](https://github.com/nuest) | [#172](https://github.com/rstudio/rticles/pull/172) | `copernicus_article()` |
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
\documentclass{bioinfo}
2+
\copyrightyear{2016} \pubyear{2016}
3+
4+
%% Some pieces required from the pandoc template
5+
\providecommand{\tightlist}{%
6+
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
7+
8+
$if(tables)$
9+
\usepackage{longtable}
10+
$endif$
11+
12+
$for(header-includes)$
13+
$header-includes$
14+
$endfor$
15+
16+
% hyperref makes the margins screwy.
17+
% https://groups.google.com/forum/#!topic/latexusersgroup/4W_SwGk6zx4
18+
% http://ansuz.sooke.bc.ca/software/latex-tricks.php
19+
% \usepackage[colorlinks=true, allcolors=blue]{hyperref}
20+
21+
\access{Advance Access Publication Date: $access_date.day$ $access_date.month$ $access_date.year$}
22+
\appnotes{Manuscript Category}
23+
24+
\begin{document}
25+
\firstpage{1}
26+
27+
\subtitle{$subject_section$}
28+
29+
\title[$title_short$]{$title_full$}
30+
31+
\author[FirstAuthorLastName \textit{et~al}.]{
32+
$for(author)$
33+
$author.name$\,\textsuperscript{$author.affiliation$},
34+
$endfor$
35+
}
36+
37+
\address{
38+
$for(address)$
39+
\textsuperscript{$address.code$}$address.address$\\
40+
$endfor$
41+
}
42+
43+
\corresp{$corresponding_author_text$}
44+
45+
\history{Received on XXX; revised on XXX; accepted on XXX}
46+
47+
\editor{Associate Editor: XXX}
48+
49+
\abstract{
50+
\textbf{Motivation:} $motivation$\\
51+
\textbf{Results:} $results$\\
52+
\textbf{Availability:} $availability$\\
53+
\textbf{Contact:}$corresponding_author_email$\\
54+
\textbf{Supplementary information:} $supplementary_info$}
55+
56+
\maketitle
57+
58+
$body$
59+
60+
$for(include-after)$
61+
$include-after$
62+
$endfor$
63+
64+
% Bibliography
65+
\bibliographystyle{natbib}
66+
\bibliography{$bibliography$}
67+
68+
\end{document}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.tex
2+
*.pdf
3+
!OUP*.pdf
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
%% This BibTeX bibliography file was created using BibDesk.
2+
%% http://bibdesk.sourceforge.net/
3+
4+
5+
%% Created for Sachs, Michael (NIH/NCI) [E] at 2014-10-27 13:53:44 -0400
6+
7+
8+
%% Saved with string encoding Unicode (UTF-8)
9+
10+
11+
12+
@book{pepe2003statistical,
13+
Author = {Pepe, Margaret Sullivan},
14+
Date-Added = {2014-10-27 17:28:41 +0000},
15+
Date-Modified = {2014-10-27 17:53:38 +0000},
16+
Publisher = {Oxford University Press},
17+
Title = {The statistical evaluation of medical tests for classification and prediction},
18+
Year = {2003}}
19+
20+
@article{hoerl1970ridge,
21+
Author = {Hoerl, Arthur E and Kennard, Robert W},
22+
Date-Added = {2014-10-27 17:28:25 +0000},
23+
Date-Modified = {2014-10-27 17:28:25 +0000},
24+
Journal = {Technometrics},
25+
Number = {1},
26+
Pages = {55--67},
27+
Publisher = {Taylor \& Francis Group},
28+
Title = {Ridge regression: Biased estimation for nonorthogonal problems},
29+
Volume = {12},
30+
Year = {1970}}
31+
32+
@article{zou2005regularization,
33+
Author = {Zou, Hui and Hastie, Trevor},
34+
Date-Added = {2014-10-27 17:28:23 +0000},
35+
Date-Modified = {2014-10-27 17:28:23 +0000},
36+
Journal = {Journal of the Royal Statistical Society: Series B (Statistical Methodology)},
37+
Number = {2},
38+
Pages = {301--320},
39+
Publisher = {Blackwell Publishing Ltd},
40+
Title = {Regularization and variable selection via the elastic net},
41+
Volume = {67},
42+
Year = {2005}}
43+
44+
@article{schoenfeld1982partial,
45+
Author = {Schoenfeld, David},
46+
Date-Added = {2014-10-27 17:28:09 +0000},
47+
Date-Modified = {2014-10-27 17:28:09 +0000},
48+
Journal = {Biometrika},
49+
Number = {1},
50+
Pages = {239--241},
51+
Publisher = {Oxford University Press},
52+
Title = {Partial residuals for the proportional hazards regression model},
53+
Volume = {69},
54+
Year = {1982}}
55+
56+
@article{heagerty2000time,
57+
Author = {Heagerty, Patrick J and Lumley, Thomas and Pepe, Margaret S},
58+
Date-Added = {2014-10-27 17:28:02 +0000},
59+
Date-Modified = {2014-10-27 17:28:02 +0000},
60+
Journal = {Biometrics},
61+
Number = {2},
62+
Pages = {337--344},
63+
Publisher = {Blackwell Publishing Ltd},
64+
Title = {Time-dependent ROC curves for censored survival data and a diagnostic marker},
65+
Volume = {56},
66+
Year = {2000}}

0 commit comments

Comments
 (0)