Skip to content

Coding best practices

Joshua D. Campbell edited this page Apr 15, 2022 · 1 revision

Many good tips and practices can be found in the Bioconductor coding style guide. Below are

  • Do not directly use "@" to access slots in an S4 object. Use the packages appropriate accessor functions. For example, do not use sce@metadata from an SCE object, but use metadata(sce). This is because the location may change in new releases within the object, but the accessor functions should be more static and always return the same time.

Clone this wiki locally