infercnv 1.10.1
inferCNV uses the R packages ape, BiocGenerics, binhf, caTools, coda, coin, dplyr, doparallel, edgeR, fastcluster, fitdistrplus, foreach, futile.logger, future, gplots, ggplot2, HiddenMarkov, leiden, phyclust, RANN, reshape, rjags, RColorBrewer, SingleCellExperiment, SummarizedExperiment, tidyr and imports functions from the archived GMD.
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("infercnv")
If you want to use the interactive heatmap visualization, please check the add-on packge R inferCNV_NGCHM after installing the packages tibble, tsvio and NGCHMR. To install optional packages, type the following in an R command window:
install.packages("tibble")
install.packages("devtools")
devtools::install_github("bmbroom/tsvio")
devtools::install_github("bmbroom/NGCHMR", ref="stable")
devtools::install_github("broadinstitute/inferCNV_NGCHM")
And download the NGCHM java application by typing the following in a regular shell:
wget http://tcga.ngchm.net/NGCHM/ShaidyMapGen.jar
Reading in the raw counts matrix and meta data, populating the infercnv object
infercnv_obj = CreateInfercnvObject(
raw_counts_matrix="../inst/extdata/oligodendroglioma_expression_downsampled.counts.matrix.gz",
annotations_file="../inst/extdata/oligodendroglioma_annotations_downsampled.txt",
delim="\t",
gene_order_file="../inst/extdata/gencode_downsampled.EXAMPLE_ONLY_DONT_REUSE.txt",
ref_group_names=c("Microglia/Macrophage","Oligodendrocytes (non-malignant)"))
## INFO [2021-11-08 17:37:01] Parsing matrix: ../inst/extdata/oligodendroglioma_expression_downsampled.counts.matrix.gz
## INFO [2021-11-08 17:37:04] Parsing gene order file: ../inst/extdata/gencode_downsampled.EXAMPLE_ONLY_DONT_REUSE.txt
## INFO [2021-11-08 17:37:04] Parsing cell annotations file: ../inst/extdata/oligodendroglioma_annotations_downsampled.txt
## INFO [2021-11-08 17:37:04] ::order_reduce:Start.
## INFO [2021-11-08 17:37:04] .order_reduce(): expr and order match.
## INFO [2021-11-08 17:37:04] ::process_data:order_reduce:Reduction from positional data, new dimensions (r,c) = 10338,184 Total=18322440.6799817 Min=0 Max=34215.
## INFO [2021-11-08 17:37:04] num genes removed taking into account provided gene ordering list: 399 = 3.8595473012188% removed.
## INFO [2021-11-08 17:37:04] -filtering out cells < 100 or > Inf, removing 0 % of cells
## INFO [2021-11-08 17:37:04] validating infercnv_obj
out_dir = tempfile()
infercnv_obj_default = infercnv::run(
infercnv_obj,
cutoff=1, # cutoff=1 works well for Smart-seq2, and cutoff=0.1 works well for 10x Genomics
out_dir=out_dir,
cluster_by_groups=TRUE,
plot_steps=FALSE,
denoise=TRUE,
HMM=FALSE,
no_prelim_plot=TRUE,
png_res=60
)
Basic ouput from running inferCNV.
For additional explanations on files, usage, and a tutorial please visit the wiki.
This tool is a part of the TrinityCTAT toolkit focused on leveraging the use of RNA-Seq to better understand cancer transcriptomes. To find out more please visit TrinityCTAT
This methodology was used in:
## R version 4.1.1 (2021-08-10)
## Platform: x86_64-pc-linux-gnu (64-bit)
## Running under: Ubuntu 20.04.3 LTS
##
## Matrix products: default
## BLAS: /home/biocbuild/bbs-3.14-bioc/R/lib/libRblas.so
## LAPACK: /home/biocbuild/bbs-3.14-bioc/R/lib/libRlapack.so
##
## locale:
## [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
## [3] LC_TIME=en_GB LC_COLLATE=C
## [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] infercnv_1.10.1 BiocStyle_2.22.0
##
## loaded via a namespace (and not attached):
## [1] TH.data_1.1-0 colorspace_2.0-2
## [3] ellipsis_0.3.2 modeltools_0.2-23
## [5] futile.logger_1.4.3 XVector_0.34.0
## [7] GenomicRanges_1.46.0 leiden_0.3.9
## [9] listenv_0.8.0 fansi_0.5.0
## [11] mvtnorm_1.1-3 coin_1.4-2
## [13] codetools_0.2-18 splines_4.1.1
## [15] doParallel_1.0.16 libcoin_1.0-9
## [17] knitr_1.36 jsonlite_1.7.2
## [19] argparse_2.1.2 rjags_4-12
## [21] png_0.1-7 BiocManager_1.30.16
## [23] compiler_4.1.1 assertthat_0.2.1
## [25] Matrix_1.3-4 fastmap_1.1.0
## [27] limma_3.50.0 formatR_1.11
## [29] htmltools_0.5.2 tools_4.1.1
## [31] igraph_1.2.8 coda_0.19-4
## [33] gtable_0.3.0 glue_1.5.0
## [35] GenomeInfoDbData_1.2.7 RANN_2.6.1
## [37] dplyr_1.0.7 Rcpp_1.0.7
## [39] Biobase_2.54.0 jquerylib_0.1.4
## [41] vctrs_0.3.8 ape_5.5
## [43] nlme_3.1-153 iterators_1.0.13
## [45] xfun_0.28 fastcluster_1.2.3
## [47] stringr_1.4.0 globals_0.14.0
## [49] lifecycle_1.0.1 gtools_3.9.2
## [51] future_1.23.0 edgeR_3.36.0
## [53] zlibbioc_1.40.0 MASS_7.3-54
## [55] zoo_1.8-9 scales_1.1.1
## [57] MatrixGenerics_1.6.0 parallel_4.1.1
## [59] SummarizedExperiment_1.24.0 sandwich_3.0-1
## [61] lambda.r_1.2.4 RColorBrewer_1.1-2
## [63] SingleCellExperiment_1.16.0 yaml_2.2.1
## [65] reticulate_1.22 gridExtra_2.3
## [67] ggplot2_3.3.5 sass_0.4.0
## [69] reshape_0.8.8 stringi_1.7.5
## [71] highr_0.9 S4Vectors_0.32.2
## [73] foreach_1.5.1 caTools_1.18.2
## [75] BiocGenerics_0.40.0 GenomeInfoDb_1.30.0
## [77] rlang_0.4.12 pkgconfig_2.0.3
## [79] matrixStats_0.61.0 bitops_1.0-7
## [81] evaluate_0.14 lattice_0.20-45
## [83] purrr_0.3.4 tidyselect_1.1.1
## [85] parallelly_1.28.1 plyr_1.8.6
## [87] magrittr_2.0.1 bookdown_0.24
## [89] R6_2.5.1 IRanges_2.28.0
## [91] gplots_3.1.1 generics_0.1.1
## [93] multcomp_1.4-17 DelayedArray_0.20.0
## [95] DBI_1.1.1 pillar_1.6.4
## [97] fitdistrplus_1.1-6 survival_3.2-13
## [99] RCurl_1.98-1.5 tibble_3.1.6
## [101] crayon_1.4.2 futile.options_1.0.1
## [103] phyclust_0.1-30 KernSmooth_2.23-20
## [105] utf8_1.2.2 rmarkdown_2.11
## [107] locfit_1.5-9.4 grid_4.1.1
## [109] digest_0.6.28 tidyr_1.1.4
## [111] stats4_4.1.1 munsell_0.5.0
## [113] bslib_0.3.1