infercnv 1.8.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.jarReading 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-08-17 07:30:07] Parsing matrix: ../inst/extdata/oligodendroglioma_expression_downsampled.counts.matrix.gz
## INFO [2021-08-17 07:30:10] Parsing gene order file: ../inst/extdata/gencode_downsampled.EXAMPLE_ONLY_DONT_REUSE.txt
## INFO [2021-08-17 07:30:11] Parsing cell annotations file: ../inst/extdata/oligodendroglioma_annotations_downsampled.txt
## INFO [2021-08-17 07:30:11] ::order_reduce:Start.
## INFO [2021-08-17 07:30:11] .order_reduce(): expr and order match.
## INFO [2021-08-17 07:30:11] ::process_data:order_reduce:Reduction from positional data, new dimensions (r,c) = 10338,184 Total=18322440.6799817 Min=0 Max=34215.
## INFO [2021-08-17 07:30:11] num genes removed taking into account provided gene ordering list: 399 = 3.8595473012188% removed.
## INFO [2021-08-17 07:30:11] -filtering out cells < 100 or > Inf, removing 0 % of cells
## INFO [2021-08-17 07:30:11] validating infercnv_objout_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.0 (2021-05-18)
## Platform: x86_64-pc-linux-gnu (64-bit)
## Running under: Ubuntu 20.04.2 LTS
## 
## Matrix products: default
## BLAS:   /home/biocbuild/bbs-3.13-bioc/R/lib/libRblas.so
## LAPACK: /home/biocbuild/bbs-3.13-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.8.1   BiocStyle_2.20.2
## 
## loaded via a namespace (and not attached):
##   [1] nlme_3.1-152                bitops_1.0-7               
##   [3] matrixStats_0.60.0          doParallel_1.0.16          
##   [5] RColorBrewer_1.1-2          GenomeInfoDb_1.28.1        
##   [7] tools_4.1.0                 bslib_0.2.5.1              
##   [9] utf8_1.2.2                  R6_2.5.0                   
##  [11] KernSmooth_2.23-20          DBI_1.1.1                  
##  [13] BiocGenerics_0.38.0         colorspace_2.0-2           
##  [15] gridExtra_2.3               tidyselect_1.1.1           
##  [17] compiler_4.1.0              argparse_2.0.4             
##  [19] Biobase_2.52.0              formatR_1.11               
##  [21] DelayedArray_0.18.0         sandwich_3.0-1             
##  [23] bookdown_0.23               sass_0.4.0                 
##  [25] caTools_1.18.2              scales_1.1.1               
##  [27] mvtnorm_1.1-2               stringr_1.4.0              
##  [29] digest_0.6.27               rmarkdown_2.10             
##  [31] XVector_0.32.0              pkgconfig_2.0.3            
##  [33] htmltools_0.5.1.1           parallelly_1.27.0          
##  [35] MatrixGenerics_1.4.2        highr_0.9                  
##  [37] limma_3.48.3                rlang_0.4.11               
##  [39] jquerylib_0.1.4             generics_0.1.0             
##  [41] zoo_1.8-9                   jsonlite_1.7.2             
##  [43] gtools_3.9.2                dplyr_1.0.7                
##  [45] RCurl_1.98-1.3              magrittr_2.0.1             
##  [47] modeltools_0.2-23           GenomeInfoDbData_1.2.6     
##  [49] futile.logger_1.4.3         Matrix_1.3-4               
##  [51] Rcpp_1.0.7                  munsell_0.5.0              
##  [53] S4Vectors_0.30.0            fansi_0.5.0                
##  [55] reticulate_1.20             ape_5.5                    
##  [57] lifecycle_1.0.0             edgeR_3.34.0               
##  [59] stringi_1.7.3               multcomp_1.4-17            
##  [61] yaml_2.2.1                  MASS_7.3-54                
##  [63] SummarizedExperiment_1.22.0 zlibbioc_1.38.0            
##  [65] plyr_1.8.6                  gplots_3.1.1               
##  [67] grid_4.1.0                  parallel_4.1.0             
##  [69] listenv_0.8.0               crayon_1.4.1               
##  [71] lattice_0.20-44             splines_4.1.0              
##  [73] locfit_1.5-9.4              knitr_1.33                 
##  [75] pillar_1.6.2                igraph_1.2.6               
##  [77] fastcluster_1.2.3           GenomicRanges_1.44.0       
##  [79] codetools_0.2-18            stats4_4.1.0               
##  [81] leiden_0.3.9                futile.options_1.0.1       
##  [83] glue_1.4.2                  evaluate_0.14              
##  [85] lambda.r_1.2.4              BiocManager_1.30.16        
##  [87] phyclust_0.1-30             png_0.1-7                  
##  [89] vctrs_0.3.8                 foreach_1.5.1              
##  [91] tidyr_1.1.3                 gtable_0.3.0               
##  [93] RANN_2.6.1                  purrr_0.3.4                
##  [95] reshape_0.8.8               future_1.21.0              
##  [97] assertthat_0.2.1            ggplot2_3.3.5              
##  [99] xfun_0.25                   coin_1.4-1                 
## [101] libcoin_1.0-8               coda_0.19-4                
## [103] rjags_4-10                  survival_3.2-12            
## [105] SingleCellExperiment_1.14.1 tibble_3.1.3               
## [107] iterators_1.0.13            IRanges_2.26.0             
## [109] globals_0.14.0              TH.data_1.0-10             
## [111] fitdistrplus_1.1-5          ellipsis_0.3.2