Add suppporting functions to access AnnotationHub-hosted files;
Write a vignette to document a use case for the package;
Create a pkgdown website for package documentation
Tip
At any time, if you are lost or do not understand how functions in theproposed solution work, type ?<function> in the R console and a help menu will appear.
You can also check the help tab in the corresponding quadrant.
Reminder
We aim to create a package which can plot the aggregated coverage of a genomic track over a set of GRanges of interest (at a fixed width).
5.1 Use TxDb and AnnotationHub resources
5.1.1TxDb database
TxDb packages provide transcript annotations for model organisms.
Question
Find the TxDb package associated with UCSC-provided human gene annotations and install it.
Note: You will need annotations from the hg19 human genome reference.
The Epigenome roadmap project by the Broad Institute performed H3K4me3 ChIP-seq in human (among other marks). They generated a library labelled ‘LL227’ (GEO ID: GSM409308).
Question
Can you query the AnnotationHub for this library?
Answer
AnnotationHub::query(ah, 'LL227')
Question
Which signal corresponds to a ChIP-seq coverage track? How can you download the associated file?
Answer
bw <- ah[['AH34904']]
Question
What is the path of the file now stored on disk? How can you load the file in R?
Check pkgdown documentation. What is the recommended way to add pkgdown support for your package?
Answer
usethis::use_pkgdown()
Question
Can you now build your package? What does the building step do exactly?
Answer
pkgdown::build_site()
Question
Comment on why setting up a pkgdown website helps with checking that your package reliably works?
Commit your changes. Did that include your newly created docs folder? Why?
Remove docs from .gitignore, then commit the docs/ folder with git.
Now push all your commits to your github remote repository, navigate to its webpage, and enable Pages deployment from the docs folder. Check the resulting website.