Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new article template for Bioinformatics #297

Merged
merged 15 commits into from
Aug 5, 2020
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
.Rproj.user
.Rhistory
.RData
*.log
4 changes: 3 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ Authors@R: c(
person("Robrecht", "Cannoodt", role = c("aut", "cph"), email = "rcannood@gmail.com", comment = c(ORCID = "0000-0003-3641-729X", github = "rcannood")),
person("Duncan", "Luguern", role = c("aut"), email = "duncan.luguern@gmail.com"),
person("David M.", "Kaplan", role = c("aut", "ctb"), email = "dmkaplan2000@gmail.com", comment = c(ORCID = "0000-0001-6087-359X", github = "dmkaplan2000")),
person("Shixiang", "Wang", role = c("aut", "ctb"), email = "w_shixiang@163.com", comment = c(ORCID = "0000-0001-9855-7357")),
person('Jay', 'Hesselberth', role = c('aut', 'ctb'), email = 'jay.hesselberth@gmail.com', comment = c(ORCID = '0000-0002-6299-179X')),
person("Alfredo", "Hernández", role = c("ctb"), email = "aldomann.designs@gmail.com", comment = c(ORCID = "0000-0002-2660-4545"))
)
Description: A suite of custom R Markdown formats and templates for
Expand All @@ -49,6 +51,6 @@ Imports: utils, rmarkdown, knitr, yaml, tinytex (>= 0.19), xfun
SystemRequirements: GNU make
URL: https://github.com/rstudio/rticles
BugReports: https://github.com/rstudio/rticles/issues
RoxygenNote: 7.0.2
RoxygenNote: 7.1.1
Suggests: testit, bookdown, xtable
Encoding: UTF-8
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export(amq_article)
export(ams_article)
export(arxiv_article)
export(asa_article)
export(bioinformatics_article)
export(biometrics_article)
export(copernicus_article)
export(copernicus_journal_abbreviations)
Expand Down
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
rticles 0.15
---------------------------------------------------------------------


- Added article template for journal *Bioinformatics*.

- Update Copernicus Publications template to version 5.8 (thanks, @nuest, #274).

- Fixed issue with multi-line authors on JSS template when using `\AND`, which was firstly implemented in b740b19b90cd6f7afe2cd7d66456c9efa0bb4cdf (thanks, @aldomann, #292).
Expand Down
11 changes: 11 additions & 0 deletions R/article.R
Original file line number Diff line number Diff line change
Expand Up @@ -298,3 +298,14 @@ tf_article <- function(..., keep_tex = TRUE, citation_package = 'natbib') {
"tf_article", keep_tex = keep_tex, citation_package = citation_package, ...
)
}

#' @section \code{bioinformatics_article}: Format for creating submissions to a Bioinformatics journal. Adapted from
#' \url{https://academic.oup.com/bioinformatics/pages/submission_online}.
#' @export
#' @rdname article
bioinformatics_article <- function(..., keep_tex = TRUE, citation_package = 'natbib') {
pdf_document_format(
"bioinformatics_article", keep_tex = keep_tex, citation_package = citation_package,
md_extensions = "-auto_identifiers",...
)
}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ The **rticles** package provides a suite of custom [R Markdown](http://rmarkdown

- [AMS](https://www.ametsoc.org/) articles

- [Bioinformatics](https://academic.oup.com/bioinformatics) articles

- [arXiv](https://arxiv.org/) pre-prints based on George Kour's template (contributed by @alexpghayes via #236)

- [Biometrics](http://www.biometrics.tibs.org/) articles
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
\documentclass{bioinfo}
\copyrightyear{2016} \pubyear{2016}

%% Some pieces required from the pandoc template
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}

$if(tables)$
\usepackage{longtable}
$endif$

$for(header-includes)$
$header-includes$
$endfor$

% hyperref makes the margins screwy.
% https://groups.google.com/forum/#!topic/latexusersgroup/4W_SwGk6zx4
% http://ansuz.sooke.bc.ca/software/latex-tricks.php
% \usepackage[colorlinks=true, allcolors=blue]{hyperref}

\access{Advance Access Publication Date: $access_date.day$ $access_date.month$ $access_date.year$}
\appnotes{Manuscript Category}

\begin{document}
\firstpage{1}

\subtitle{$subject_section$}

\title[$title_short$]{$title_full$}

\author[FirstAuthorLastName \textit{et~al}.]{
$for(author)$
$author.name$\,\textsuperscript{$author.affiliation$},
$endfor$
}

\address{
$for(address)$
\textsuperscript{$address.code$}$address.address$\\
$endfor$
}

\corresp{$corresponding_author_text$}

\history{Received on XXX; revised on XXX; accepted on XXX}

\editor{Associate Editor: XXX}

\abstract{
\textbf{Motivation:} $motivation$\\
\textbf{Results:} $results$\\
\textbf{Availability:} $availability$\\
\textbf{Contact:}$corresponding_author_email$\\
\textbf{Supplementary information:} $supplementary_info$}

\maketitle

$body$

$for(include-after)$
$include-after$
$endfor$

% Bibliography
\bibliographystyle{natbib}
\bibliography{$bibliography$}

\end{document}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.tex
*.pdf
!OUP*.pdf
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
%% This BibTeX bibliography file was created using BibDesk.
%% http://bibdesk.sourceforge.net/


%% Created for Sachs, Michael (NIH/NCI) [E] at 2014-10-27 13:53:44 -0400


%% Saved with string encoding Unicode (UTF-8)



@book{pepe2003statistical,
Author = {Pepe, Margaret Sullivan},
Date-Added = {2014-10-27 17:28:41 +0000},
Date-Modified = {2014-10-27 17:53:38 +0000},
Publisher = {Oxford University Press},
Title = {The statistical evaluation of medical tests for classification and prediction},
Year = {2003}}

@article{hoerl1970ridge,
Author = {Hoerl, Arthur E and Kennard, Robert W},
Date-Added = {2014-10-27 17:28:25 +0000},
Date-Modified = {2014-10-27 17:28:25 +0000},
Journal = {Technometrics},
Number = {1},
Pages = {55--67},
Publisher = {Taylor \& Francis Group},
Title = {Ridge regression: Biased estimation for nonorthogonal problems},
Volume = {12},
Year = {1970}}

@article{zou2005regularization,
Author = {Zou, Hui and Hastie, Trevor},
Date-Added = {2014-10-27 17:28:23 +0000},
Date-Modified = {2014-10-27 17:28:23 +0000},
Journal = {Journal of the Royal Statistical Society: Series B (Statistical Methodology)},
Number = {2},
Pages = {301--320},
Publisher = {Blackwell Publishing Ltd},
Title = {Regularization and variable selection via the elastic net},
Volume = {67},
Year = {2005}}

@article{schoenfeld1982partial,
Author = {Schoenfeld, David},
Date-Added = {2014-10-27 17:28:09 +0000},
Date-Modified = {2014-10-27 17:28:09 +0000},
Journal = {Biometrika},
Number = {1},
Pages = {239--241},
Publisher = {Oxford University Press},
Title = {Partial residuals for the proportional hazards regression model},
Volume = {69},
Year = {1982}}

@article{heagerty2000time,
Author = {Heagerty, Patrick J and Lumley, Thomas and Pepe, Margaret S},
Date-Added = {2014-10-27 17:28:02 +0000},
Date-Modified = {2014-10-27 17:28:02 +0000},
Journal = {Biometrics},
Number = {2},
Pages = {337--344},
Publisher = {Blackwell Publishing Ltd},
Title = {Time-dependent ROC curves for censored survival data and a diagnostic marker},
Volume = {56},
Year = {2000}}
Loading