- Set the working directory to this file level. We recommend to use Projects in Rstudio.
- Use
install_dependencies.Rto install all packages used in these reports.
This templates assume data has been processed by nf-core/rnaseq.
We recommend to use the samplesheet.csv used with nf-core as metadata file, where other relevant columns can be there even if they are not used by the pipeline.
- Modify
information.Rwith the right information. You can use this file with any other Rmd to include the project/analysis information. - Modify the
params_*Rthat goes together with the Rmd templates with the right input files. params*example.Rare parameters pointing to test data to be used as an example to test the reports.run_markdown.Ris an example of code to run the Rmd with different parameters.
01_quality_assessment/QC.Rmd is a template report that needs params_qc.R for nf-core/rnaseq outputs.
Follow instruction in the R and Rmd scripts to render it.
02_differential_expression/DEG.Rmd is a template for comparison between two groups. params_de.R has the information for the input files to load. You need to point to nf-core/rnaseq output files.
On the YAML header file of the Rmd you can specify some parameters or just set them up in the first chunk of code of the template. This template has examples of:
- sub-setting data
- two groups comparison
- volcano plot
- MA plot
- Pathway analysis: Over-Representation Analysis and Gene-Set-Enrichment Analysis
- Tables
03_comparative/Pair-wise-comparison-analysis.Rmdshows an exmaple on how to compare two differential expression analysis from theDEG.Rmdtemplate.03_comparative/Intersections.Rmdshows an example on how to compare multiple differential expression analyses fromDEG.Rmdand find intersections.
03_functional/GSVA.Rmdshows an example on how to use GSVA package for estimating variation of gene set enrichment through the samples of a expression data set03_functional/Nonmodel_Organism_Pathway_Analysis.Rmdshows an example on how to run Gene Ontology over-representation, KEGG over-representation, and KEGG gene set enrichment analysis (GSEA) for non-model organisms using data from Uniprot.params_nonmodel_org_pathways.Rhas the information for the input files to load.03_functional/Immune-deconvolution.Rmdshows an example on how to run immune cell type deconvolution.params_immune_deconv.Rhas the information for the input files to load.
04_gene_patterns/WGCNA.Rmdshows an example on how to use the WGCNA package to find gene modules in the gene expression data.04_gene_patterns/DEGpatterns.Rmdshows an example on hot to cluster set of genes across conditions and time points to identify specific profiles.