Demonstration of test driven development in R with testthat (CC269)

Описание к видео Demonstration of test driven development in R with testthat (CC269)

In test driven development you write the tests first, have them fail, and then write your code to pass the tests. In this episode, Pat provides a demonstration of TDD for two functions he's written to extract k-mers from a DNA sequence. This part of a larger effort to develop his phylotyper R package that will use kmer-based methods of classifying 16S rRNA gene sequences to their correct bacterial taxonomy.

If you want to get a physical copy of R Packages: https://amzn.to/43pMR8L
If you want a free, online version of R packages: https://r-pkgs.org/

You can find my blog post for this episode at https://www.riffomonas.org/code_club/....

Check out the GitHub repository at the:
* Beginning of the episode: https://github.com/riffomonas/phyloty...
* End of the episode: https://github.com/riffomonas/phyloty...

#tdd #kmers #rdp #16S #classification #classifier #microbialecology #microbiome #testdrivendevelopment

Support Riffomonas by becoming a Patreon member!
  / riffomonas  

Want more practice on the concepts covered in Code Club? You can sign up for my weekly newsletter at https://shop.riffomonas.org/youtube to get practice problems, tips, and insights.

If you're interested in purchasing a video workshop be sure to check out https://riffomonas.org/workshops/

You can also find complete tutorials for learning R with the tidyverse using...
Microbial ecology data: https://www.riffomonas.org/minimalR/
General data: https://www.riffomonas.org/generalR/

0:00 Introduction
4:29 Creating kmer functions with Test Driven Development
23:21 Review of TDD process
24:58 Refactoring code with help of TDD
29:09 Cleaning up package and committing

Комментарии

Информация по комментариям в разработке