Introduction

RforMassSpectrometry is a meta-package, to manage and document the R for Mass Spectrometry (https://www.rformassspectrometry.org/) project. The goal of the project to provide efficient, thoroughly documented, tested and flexible R software for the analysis and interpretation of high throughput mass spectrometry assays, including proteomics and metabolomics experiments. The project formalises the longtime collaborative development efforts of its members under the R for Mass Spectrometry organisation to facilitate dissemination and accessibility of their work.

Installation

To install the core R for Mass Spectrometry packages, you will need the BiocManager package, available on CRAN. If not already available, install it with

To proceed with the installation, run

BiocManager::install("RforMassSpectrometry/RforMassSpectrometry")

Note that some very recent Bioconductor will be needed to install and run the suite of R for Mass Spectrometry packages, and will require a recent version of R and possibly even installing the Bioconductor development version.

Loading the RforMassSpectrometry package with

library("RforMassSpectrometry")
## 
## This is RforMassSpectrometry version 0.1.1 
##   Please not that it is a very early stage project.
##   Visit https://RforMassSpectrometry.org to get started.

will load the required core packages.

Code of Conduct

As contributors and maintainers of the R for Mass Spectrometry initiative, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities. We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion. Examples of unacceptable behaviour by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct. Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team. Instances of abusive, harassing, or otherwise unacceptable behaviour may be reported by opening an issue or contacting one or more of the project maintainers.

This Code of Conduct is adapted from the Contributor Covenant, version 1.0.0, available from http://contributor-covenant.org/version/1/0/0/

Contributions

The R for Mass Spectrometry project welcomes contributions in the form of ideas, documentation, code, packages, fixes (bugs and typos), … We invite you to discuss any of these opening a GitHub issue, either in the RforMassSpectrometry package, or any other package of relevant.

If you have any direct contributions to an existing repository, we suggest to first discuss these as an issue if it implies any substantial changes (no need for an issue if its a simple typo, and we really appreciate those). Contributions, even those from core members, are always expected to come in the form of a pull request (PR) that then undergoes a formal review. To do this, start by forking the package you want to contribute to. It is also advised to work in, and make the PR, from a non-master branch. Good branch names include feat-X, bug-Y, docs-Z for new features, bug fixes and documentation updates respectively. The reviewers might ask for additional clarifications and/or changes prior to merging the PR. When contemplating contributing code, please follow the style guide below.

See also the tidyverse and Mycrof contribution guides for additional resources and instructions.

Reviewers we will do their best to help you to get the PR merged1.

We also anticipate to open up some specific requests for contributions and invite specific members of the community, if we identify a specific need and/or a specific developer to address that need.

Commit messages

Commit messages should follow the Conventional Commits guidelines. In particular, the following types are recommended (based on angulars types):

  • build: Changes that affect the build system or external dependencies (example scopes: depends, suggests, imports, …).
  • ci: Changes to the continous integration (CI) configuration files and scripts (example: Travis configuration file).
  • docs: Documentation only changes, including manual pages and vignettes.
  • feat: A new feature.
  • fix: A bug fix.
  • perf: A code change that improves performance.
  • refactor: A code change that neither fixes a bug nor adds a feature.
  • style: Changes that do not affect the meaning of the code (white-space, formatting, …).
  • test: Adding missing tests or correcting existing tests.
  • other: Anything that doesn’t fix in the above. Consider opening an issue suggestion a new type.

Credit where credit is due

We also want to offer proper credit to those that provide substantial contributions. Substantial contributions include, for example

  • new functionality that goes beyond e.g. a simple plot function
  • bug fixes combined with related unit tests
  • extended documentation, examples or vignettes describing a complete (potentially alternative) analysis workflow or use-case

Fixing typo(s) isn’t considered a substantial contribution per-se, even though they are highly appreciated.

Once a substantial contribution passes review and is merged, we will add the contributor in the package’s author list as an official contributor (ctb role) or even author (aut role) for more substantial contributions. The contributors name will also be added to the R for Mass Spectrometry web page and to any relevant publications that directly stem from their work.

Coding style

The R for Mass Spectrometry packages follows the Bioconductor style guide. In particular

  • Do not use . when naming symbols.
  • A leading . can be used for hidden/local functions or variables.
  • Snake case should be restricted to internal functions. For consistency, we favour camel case for public functions.
  • Class names should start with a capital and each class should posses a constructor with identical name. Running the constructor without any input should produce a valid empty object.
  • Use ## to start full-line comments.
  • For roxygen headers #' is preferred, although ##' is tolerated.
  • Use spaces between = in function arguments or class definition: f(a = 1, b = 2).
  • Always use a space after a comma: a, b, c.
  • Always use spaces around binary operators: a + b.
  • Lines should be kept shorter than 80 characters. For example the following code isn’t accepted

and should be wrapped as shown below:

Contact

Please see the contact page for instructions on how to get in touch.

Session info

## R version 3.6.1 (2017-01-27)
## Platform: x86_64-pc-linux-gnu (64-bit)
## Running under: Ubuntu 14.04.5 LTS
## 
## Matrix products: default
## BLAS:   /home/travis/R-bin/lib/R/lib/libRblas.so
## LAPACK: /home/travis/R-bin/lib/R/lib/libRlapack.so
## 
## locale:
##  [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
##  [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
##  [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
##  [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
##  [9] LC_ADDRESS=C               LC_TELEPHONE=C            
## [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       
## 
## attached base packages:
## [1] stats     graphics  grDevices utils     datasets  methods   base     
## 
## other attached packages:
## [1] RforMassSpectrometry_0.1.1 BiocStyle_2.13.2          
## 
## loaded via a namespace (and not attached):
##  [1] Rcpp_1.0.2                  compiler_3.6.1             
##  [3] BiocManager_1.30.4          GenomeInfoDb_1.21.1        
##  [5] XVector_0.25.0              ProtGenerics_1.17.4        
##  [7] Features_0.1.0              bitops_1.0-6               
##  [9] tools_3.6.1                 zlibbioc_1.31.0            
## [11] digest_0.6.20               lattice_0.20-38            
## [13] evaluate_0.14               memoise_1.1.0              
## [15] rlang_0.4.0                 Matrix_1.2-17              
## [17] DelayedArray_0.11.4         yaml_2.2.0                 
## [19] parallel_3.6.1              pkgdown_1.4.0              
## [21] xfun_0.9                    Spectra_0.3.0              
## [23] GenomeInfoDbData_1.2.1      stringr_1.4.0              
## [25] knitr_1.24                  MsCoreUtils_0.0.2          
## [27] desc_1.2.0                  fs_1.3.1                   
## [29] S4Vectors_0.23.21           IRanges_2.19.14            
## [31] grid_3.6.1                  MultiAssayExperiment_1.11.7
## [33] stats4_3.6.1                rprojroot_1.3-2            
## [35] Biobase_2.45.1              R6_2.4.0                   
## [37] BiocParallel_1.19.2         rmarkdown_1.15             
## [39] bookdown_0.13               AnnotationFilter_1.9.0     
## [41] magrittr_1.5                matrixStats_0.54.0         
## [43] backports_1.1.4             htmltools_0.3.6            
## [45] MASS_7.3-51.4               GenomicRanges_1.37.15      
## [47] BiocGenerics_0.31.5         MsExperiment_0.0.1         
## [49] SummarizedExperiment_1.15.8 assertthat_0.2.1           
## [51] stringi_1.4.3               RCurl_1.95-4.12            
## [53] lazyeval_0.2.2              crayon_1.3.4

  1. Useful reading: The nodejs reviewing PRs for reviewers guide