infercnv运行测试6---21步

R version 4.0.2 (2020-06-22) -- "Taking Off Again"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> rm(list=ls())
> options(stringsAsFactors = F)
> library(Seurat)

Seurat v4 will be going to CRAN in the near future;
 for more details, please visit https://satijalab.org/seurat/v4_changes

Warning message:
程辑包‘Seurat’是用R版本4.0.3 来建造的 
> library(ggplot2)
> library(infercnv)
Warning message:
程辑包‘infercnv’是用R版本4.0.3 来建造的 
> expFile='expFile.txt' 
> groupFiles='groupFiles.txt'  
> geneFile='geneFile.txt'
> infercnv_obj = CreateInfercnvObject(raw_counts_matrix=expFile,
+                                     annotations_file=groupFiles,
+                                     delim="\t",
+                                     gene_order_file= geneFile,
+                                     ref_group_names=c('ref-fib'))  ## 这个取决于自己的分组信息里面的
INFO [2021-03-11 14:20:40] Parsing matrix: expFile.txt
INFO [2021-03-11 14:20:40] Parsing gene order file: geneFile.txt
INFO [2021-03-11 14:20:41] Parsing cell annotations file: groupFiles.txt
INFO [2021-03-11 14:20:41] ::order_reduce:Start.
INFO [2021-03-11 14:20:41] .order_reduce(): expr and order match.
INFO [2021-03-11 14:20:41] ::process_data:order_reduce:Reduction from positional data, new dimensions (r,c) = 8259,161 Total=657080 Min=0 Max=866.
INFO [2021-03-11 14:20:41] num genes removed taking into account provided gene ordering list: 302 = 3.65661702385277% removed.
INFO [2021-03-11 14:20:41] -filtering out cells < 100 or > Inf, removing 0 % of cells
INFO [2021-03-11 14:20:41] validating infercnv_obj
> 
> #dir.create("plot_out")#新建,原来没有这个文件夹
> 
> ##  文献的代码:#14:58开始
> start_time <- Sys.time()
> infercnv_obj2 = infercnv::run(infercnv_obj,
+                               cutoff=0.1,  # cutoff=1 works well for Smart-seq2, and cutoff=0.1 works well for 10x Genomics
+                               out_dir=  'plot_out2/' , 
+                               cluster_by_groups=T,   # cluster
+                               hclust_method="ward.D2", 
+                               plot_steps=F,
+                               denoise=T,
+                               HMM=T) 
INFO [2021-03-11 14:20:41] ::process_data:Start
INFO [2021-03-11 14:20:41] Creating output path plot_out2/
INFO [2021-03-11 14:20:41] Checking for saved results.
INFO [2021-03-11 14:20:41] 
STEP 1: incoming data

INFO [2021-03-11 14:20:41]

STEP 02: Removing lowly expressed genes

INFO [2021-03-11 14:20:41] ::above_min_mean_expr_cutoff:Start
INFO [2021-03-11 14:20:41] Removing 5199 genes from matrix as below mean expr threshold: 0.1
INFO [2021-03-11 14:20:41] validating infercnv_obj
INFO [2021-03-11 14:20:41] There are 2758 genes and 161 cells remaining in the expr matrix.
INFO [2021-03-11 14:20:41] no genes removed due to min cells/gene filter
INFO [2021-03-11 14:20:42]

STEP 03: normalization by sequencing depth

INFO [2021-03-11 14:20:42] normalizing counts matrix by depth
INFO [2021-03-11 14:20:42] Computed total sum normalization factor as median libsize: 1424.000000
INFO [2021-03-11 14:20:42] Adding h-spike
INFO [2021-03-11 14:20:42] -hspike modeling of ref-fib
INFO [2021-03-11 14:21:31] validating infercnv_obj
INFO [2021-03-11 14:21:31] normalizing counts matrix by depth
INFO [2021-03-11 14:21:31] Using specified normalization factor: 1424.000000
INFO [2021-03-11 14:21:31]

STEP 04: log transformation of data

INFO [2021-03-11 14:21:31] transforming log2xplus1()
INFO [2021-03-11 14:21:31] -mirroring for hspike
INFO [2021-03-11 14:21:31] transforming log2xplus1()
INFO [2021-03-11 14:21:32]

STEP 08: removing average of reference data (before smoothing)

INFO [2021-03-11 14:21:32] ::subtract_ref_expr_from_obs:Start inv_log=FALSE, use_bounds=TRUE
INFO [2021-03-11 14:21:32] subtracting mean(normal) per gene per cell across all data
INFO [2021-03-11 14:21:33] -subtracting expr per gene, use_bounds=TRUE
INFO [2021-03-11 14:21:33] -mirroring for hspike
INFO [2021-03-11 14:21:33] ::subtract_ref_expr_from_obs:Start inv_log=FALSE, use_bounds=TRUE
INFO [2021-03-11 14:21:33] subtracting mean(normal) per gene per cell across all data
INFO [2021-03-11 14:21:35] -subtracting expr per gene, use_bounds=TRUE
INFO [2021-03-11 14:21:36]

STEP 09: apply max centered expression threshold: 3

INFO [2021-03-11 14:21:36] ::process_data:setting max centered expr, threshold set to: +/-: 3
INFO [2021-03-11 14:21:36] -mirroring for hspike
INFO [2021-03-11 14:21:36] ::process_data:setting max centered expr, threshold set to: +/-: 3
INFO [2021-03-11 14:21:37]

STEP 10: Smoothing data per cell by chromosome

INFO [2021-03-11 14:21:37] smooth_by_chromosome: chr: chr1
INFO [2021-03-11 14:21:38] smooth_by_chromosome: chr: chr10
INFO [2021-03-11 14:21:38] smooth_by_chromosome: chr: chr11
INFO [2021-03-11 14:21:38] smooth_by_chromosome: chr: chr12
INFO [2021-03-11 14:21:38] smooth_by_chromosome: chr: chr13
INFO [2021-03-11 14:21:38] smooth_by_chromosome: chr: chr14
INFO [2021-03-11 14:21:38] smooth_by_chromosome: chr: chr15
INFO [2021-03-11 14:21:38] smooth_by_chromosome: chr: chr16
INFO [2021-03-11 14:21:39] smooth_by_chromosome: chr: chr17
INFO [2021-03-11 14:21:39] smooth_by_chromosome: chr: chr18
INFO [2021-03-11 14:21:39] smooth_by_chromosome: chr: chr19
INFO [2021-03-11 14:21:39] smooth_by_chromosome: chr: chr2
INFO [2021-03-11 14:21:39] smooth_by_chromosome: chr: chr20
INFO [2021-03-11 14:21:39] smooth_by_chromosome: chr: chr21
INFO [2021-03-11 14:21:39] smooth_by_chromosome: chr: chr22
INFO [2021-03-11 14:21:40] smooth_by_chromosome: chr: chr3
INFO [2021-03-11 14:21:40] smooth_by_chromosome: chr: chr4
INFO [2021-03-11 14:21:40] smooth_by_chromosome: chr: chr5
INFO [2021-03-11 14:21:40] smooth_by_chromosome: chr: chr6
INFO [2021-03-11 14:21:40] smooth_by_chromosome: chr: chr7
INFO [2021-03-11 14:21:41] smooth_by_chromosome: chr: chr8
INFO [2021-03-11 14:21:41] smooth_by_chromosome: chr: chr9
INFO [2021-03-11 14:21:41] -mirroring for hspike
INFO [2021-03-11 14:21:41] smooth_by_chromosome: chr: chrA
INFO [2021-03-11 14:21:41] smooth_by_chromosome: chr: chr_0
INFO [2021-03-11 14:21:41] smooth_by_chromosome: chr: chr_B
INFO [2021-03-11 14:21:42] smooth_by_chromosome: chr: chr_0pt5
INFO [2021-03-11 14:21:42] smooth_by_chromosome: chr: chr_C
INFO [2021-03-11 14:21:42] smooth_by_chromosome: chr: chr_1pt5
INFO [2021-03-11 14:21:42] smooth_by_chromosome: chr: chr_D
INFO [2021-03-11 14:21:42] smooth_by_chromosome: chr: chr_2pt0
INFO [2021-03-11 14:21:43] smooth_by_chromosome: chr: chr_E
INFO [2021-03-11 14:21:44] smooth_by_chromosome: chr: chr_3pt0
INFO [2021-03-11 14:21:44] smooth_by_chromosome: chr: chr_F
INFO [2021-03-11 14:21:46]

STEP 11: re-centering data across chromosome after smoothing

INFO [2021-03-11 14:21:46] ::center_smooth across chromosomes per cell
INFO [2021-03-11 14:21:46] -mirroring for hspike
INFO [2021-03-11 14:21:46] ::center_smooth across chromosomes per cell
INFO [2021-03-11 14:21:47]

STEP 12: removing average of reference data (after smoothing)

INFO [2021-03-11 14:21:47] ::subtract_ref_expr_from_obs:Start inv_log=FALSE, use_bounds=TRUE
INFO [2021-03-11 14:21:47] subtracting mean(normal) per gene per cell across all data
INFO [2021-03-11 14:21:48] -subtracting expr per gene, use_bounds=TRUE
INFO [2021-03-11 14:21:48] -mirroring for hspike
INFO [2021-03-11 14:21:48] ::subtract_ref_expr_from_obs:Start inv_log=FALSE, use_bounds=TRUE
INFO [2021-03-11 14:21:48] subtracting mean(normal) per gene per cell across all data
INFO [2021-03-11 14:21:50] -subtracting expr per gene, use_bounds=TRUE
INFO [2021-03-11 14:21:51]

STEP 14: invert log2(FC) to FC

INFO [2021-03-11 14:21:51] invert_log2(), computing 2^x
INFO [2021-03-11 14:21:51] -mirroring for hspike
INFO [2021-03-11 14:21:51] invert_log2(), computing 2^x
INFO [2021-03-11 14:21:53]

STEP 15: Clustering samples (not defining tumor subclusters)

INFO [2021-03-11 14:21:53] define_signif_tumor_subclusters(p_val=0.1
INFO [2021-03-11 14:21:53] define_signif_tumor_subclusters(), tumor: epi
INFO [2021-03-11 14:21:53] cut tree into: 1 groups
INFO [2021-03-11 14:21:53] -processing epi,epi_s1
INFO [2021-03-11 14:21:53] define_signif_tumor_subclusters(), tumor: ref-fib
INFO [2021-03-11 14:21:53] cut tree into: 1 groups
INFO [2021-03-11 14:21:53] -processing ref-fib,ref-fib_s1
INFO [2021-03-11 14:21:53] -mirroring for hspike
INFO [2021-03-11 14:21:53] define_signif_tumor_subclusters(p_val=0.1
INFO [2021-03-11 14:21:53] define_signif_tumor_subclusters(), tumor: spike_tumor_cell_ref-fib
INFO [2021-03-11 14:21:54] cut tree into: 1 groups
INFO [2021-03-11 14:21:54] -processing spike_tumor_cell_ref-fib,spike_tumor_cell_ref-fib_s1
INFO [2021-03-11 14:21:54] define_signif_tumor_subclusters(), tumor: simnorm_cell_ref-fib
INFO [2021-03-11 14:21:54] cut tree into: 1 groups
INFO [2021-03-11 14:21:54] -processing simnorm_cell_ref-fib,simnorm_cell_ref-fib_s1
INFO [2021-03-11 14:21:56] ::plot_cnv:Start
INFO [2021-03-11 14:21:56] ::plot_cnv:Current data dimensions (r,c)=2758,161 Total=444261.448584115 Min=0.7259085460275 Max=1.27974740879628.
INFO [2021-03-11 14:21:56] ::plot_cnv:Depending on the size of the matrix this may take a moment.
INFO [2021-03-11 14:21:58] plot_cnv(): auto thresholding at: (0.882791 , 1.118216)
INFO [2021-03-11 14:21:58] plot_cnv_observation:Start
INFO [2021-03-11 14:21:58] Observation data size: Cells= 57 Genes= 2758
INFO [2021-03-11 14:21:58] plot_cnv_observation:Writing observation groupings/color.
INFO [2021-03-11 14:21:58] plot_cnv_observation:Done writing observation groupings/color.
INFO [2021-03-11 14:21:58] plot_cnv_observation:Writing observation heatmap thresholds.
INFO [2021-03-11 14:21:58] plot_cnv_observation:Done writing observation heatmap thresholds.
INFO [2021-03-11 14:21:58] Colors for breaks: #00008B,#24249B,#4848AB,#6D6DBC,#9191CC,#B6B6DD,#DADAEE,#FFFFFF,#EEDADA,#DDB6B6,#CC9191,#BC6D6D,#AB4848,#9B2424,#8B0000
INFO [2021-03-11 14:21:58] Quantiles of plotted data range: 0.882790650772113,0.966942481185594,0.998792930197712,1.03387941341448,1.11821578824489
INFO [2021-03-11 14:21:58] plot_cnv_observations:Writing observation data to plot_out2//infercnv.preliminary.observations.txt
INFO [2021-03-11 14:21:59] plot_cnv_references:Start
INFO [2021-03-11 14:21:59] Reference data size: Cells= 104 Genes= 2758
INFO [2021-03-11 14:21:59] plot_cnv_references:Number reference groups= 1
INFO [2021-03-11 14:21:59] plot_cnv_references:Plotting heatmap.
INFO [2021-03-11 14:21:59] Colors for breaks: #00008B,#24249B,#4848AB,#6D6DBC,#9191CC,#B6B6DD,#DADAEE,#FFFFFF,#EEDADA,#DDB6B6,#CC9191,#BC6D6D,#AB4848,#9B2424,#8B0000
INFO [2021-03-11 14:21:59] Quantiles of plotted data range: 0.882790650772113,0.978846385330733,0.998778646338114,1.02034944189329,1.11821578824489
INFO [2021-03-11 14:21:59] plot_cnv_references:Writing reference data to plot_out2//infercnv.preliminary.references.txt
INFO [2021-03-11 14:22:00]

STEP 17: HMM-based CNV prediction

INFO [2021-03-11 14:22:00] predict_CNV_via_HMM_on_whole_tumor_samples
INFO [2021-03-11 14:22:01] -done predicting CNV based on initial tumor subclusters
INFO [2021-03-11 14:22:02] get_predicted_CNV_regions(subcluster)
INFO [2021-03-11 14:22:02] -processing cell_group_name: epi.epi_s1, size: 57
INFO [2021-03-11 14:22:05] -processing cell_group_name: ref-fib.ref-fib_s1, size: 104
INFO [2021-03-11 14:22:09] -writing cell clusters file: plot_out2//17_HMM_predHMMi6.hmm_mode-samples.cell_groupings
INFO [2021-03-11 14:22:09] -writing cnv regions file: plot_out2//17_HMM_predHMMi6.hmm_mode-samples.pred_cnv_regions.dat
INFO [2021-03-11 14:22:09] -writing per-gene cnv report: plot_out2//17_HMM_predHMMi6.hmm_mode-samples.pred_cnv_genes.dat
INFO [2021-03-11 14:22:09] -writing gene ordering info: plot_out2//17_HMM_predHMMi6.hmm_mode-samples.genes_used.dat
INFO [2021-03-11 14:22:10] ::plot_cnv:Start
INFO [2021-03-11 14:22:10] ::plot_cnv:Current data dimensions (r,c)=2758,161 Total=1375434 Min=1 Max=6.
INFO [2021-03-11 14:22:10] ::plot_cnv:Depending on the size of the matrix this may take a moment.
INFO [2021-03-11 14:22:10] plot_cnv_observation:Start
INFO [2021-03-11 14:22:10] Observation data size: Cells= 57 Genes= 2758
INFO [2021-03-11 14:22:10] plot_cnv_observation:Writing observation groupings/color.
INFO [2021-03-11 14:22:10] plot_cnv_observation:Done writing observation groupings/color.
INFO [2021-03-11 14:22:10] plot_cnv_observation:Writing observation heatmap thresholds.
INFO [2021-03-11 14:22:10] plot_cnv_observation:Done writing observation heatmap thresholds.
INFO [2021-03-11 14:22:11] Colors for breaks: #00008B,#24249B,#4848AB,#6D6DBC,#9191CC,#B6B6DD,#DADAEE,#FFFFFF,#EEDADA,#DDB6B6,#CC9191,#BC6D6D,#AB4848,#9B2424,#8B0000
INFO [2021-03-11 14:22:11] Quantiles of plotted data range: 1,3,3,4,6
INFO [2021-03-11 14:22:11] plot_cnv_observations:Writing observation data to plot_out2//infercnv.17_HMM_predHMMi6.hmm_mode-samples.observations.txt
INFO [2021-03-11 14:22:11] plot_cnv_references:Start
INFO [2021-03-11 14:22:11] Reference data size: Cells= 104 Genes= 2758
INFO [2021-03-11 14:22:11] plot_cnv_references:Number reference groups= 1
INFO [2021-03-11 14:22:11] plot_cnv_references:Plotting heatmap.
INFO [2021-03-11 14:22:11] Colors for breaks: #00008B,#24249B,#4848AB,#6D6DBC,#9191CC,#B6B6DD,#DADAEE,#FFFFFF,#EEDADA,#DDB6B6,#CC9191,#BC6D6D,#AB4848,#9B2424,#8B0000
INFO [2021-03-11 14:22:11] Quantiles of plotted data range: 3,3,3,3,3
INFO [2021-03-11 14:22:11] plot_cnv_references:Writing reference data to plot_out2//infercnv.17_HMM_predHMMi6.hmm_mode-samples.references.txt
INFO [2021-03-11 14:22:12]

STEP 18: Run Bayesian Network Model on HMM predicted CNV's

INFO [2021-03-11 14:22:12] Creating the following Directory: plot_out2//BayesNetOutput.HMMi6.hmm_mode-samples
INFO [2021-03-11 14:22:12] Initializing new MCM InferCNV Object.
INFO [2021-03-11 14:22:12] validating infercnv_obj
INFO [2021-03-11 14:22:12] Total CNV's: 40
INFO [2021-03-11 14:22:12] Loading BUGS Model.
INFO [2021-03-11 14:22:12] Running Sampling Using Parallel with 4 Cores
INFO [2021-03-11 14:27:32] Obtaining probabilities post-sampling
INFO [2021-03-11 14:27:47] Gibbs sampling time: 5.58109418153763 Minutes
INFO [2021-03-11 14:27:49] ::plot_cnv:Start
INFO [2021-03-11 14:27:49] ::plot_cnv:Current data dimensions (r,c)=2758,161 Total=71012.5240103977 Min=0 Max=0.984422691407214.
INFO [2021-03-11 14:27:49] ::plot_cnv:Depending on the size of the matrix this may take a moment.
INFO [2021-03-11 14:27:49] plot_cnv_observation:Start
INFO [2021-03-11 14:27:49] Observation data size: Cells= 57 Genes= 2758
INFO [2021-03-11 14:27:49] plot_cnv_observation:Writing observation groupings/color.
INFO [2021-03-11 14:27:49] plot_cnv_observation:Done writing observation groupings/color.
INFO [2021-03-11 14:27:49] plot_cnv_observation:Writing observation heatmap thresholds.
INFO [2021-03-11 14:27:49] plot_cnv_observation:Done writing observation heatmap thresholds.
INFO [2021-03-11 14:27:50] Colors for breaks: #00008B,#24249B,#4848AB,#6D6DBC,#9191CC,#B6B6DD,#DADAEE,#FFFFFF,#EEDADA,#DDB6B6,#CC9191,#BC6D6D,#AB4848,#9B2424,#8B0000
INFO [2021-03-11 14:27:50] Quantiles of plotted data range: 0,0,0.654166120340874,0.837559084106656,0.984422691407214
INFO [2021-03-11 14:27:50] plot_cnv_observations:Writing observation data to plot_out2//BayesNetOutput.HMMi6.hmm_mode-samples/infercnv.NormalProbabilities.PreFiltering.observations.txt
INFO [2021-03-11 14:27:50] plot_cnv_references:Start
INFO [2021-03-11 14:27:50] Reference data size: Cells= 104 Genes= 2758
INFO [2021-03-11 14:27:50] plot_cnv_references:Number reference groups= 1
INFO [2021-03-11 14:27:50] plot_cnv_references:Plotting heatmap.
INFO [2021-03-11 14:27:50] Colors for breaks: #00008B,#24249B,#4848AB,#6D6DBC,#9191CC,#B6B6DD,#DADAEE,#FFFFFF,#EEDADA,#DDB6B6,#CC9191,#BC6D6D,#AB4848,#9B2424,#8B0000
INFO [2021-03-11 14:27:50] Quantiles of plotted data range: 0,0,0,0,0
INFO [2021-03-11 14:27:50] plot_cnv_references:Writing reference data to plot_out2//BayesNetOutput.HMMi6.hmm_mode-samples/infercnv.NormalProbabilities.PreFiltering.references.txt
INFO [2021-03-11 14:27:53] Attempting to removing CNV(s) with a probability of being normal above 0.5
INFO [2021-03-11 14:27:53] Removing 0 CNV(s) identified by the HMM.
INFO [2021-03-11 14:27:53] Reassigning CNVs based on state probabilities.
INFO [2021-03-11 14:27:53] Changing the following CNV's states assigned by the HMM to the following based on the CNV's state probabilities.
chr14-region_18 : 4 (P= 0.312069975661675 ) -> 3 (P= 0.345833879659126 )
chr20-region_42 : 4 (P= 0.35482636986536 ) -> 3 (P= 0.412560026703347 )
INFO [2021-03-11 14:27:53] Creating Plots for CNV and cell Probabilities.
INFO [2021-03-11 14:28:14] ::plot_cnv:Start
INFO [2021-03-11 14:28:14] ::plot_cnv:Current data dimensions (r,c)=2758,161 Total=71012.5240103977 Min=0 Max=0.984422691407214.
INFO [2021-03-11 14:28:14] ::plot_cnv:Depending on the size of the matrix this may take a moment.
INFO [2021-03-11 14:28:14] plot_cnv_observation:Start
INFO [2021-03-11 14:28:14] Observation data size: Cells= 57 Genes= 2758
INFO [2021-03-11 14:28:14] plot_cnv_observation:Writing observation groupings/color.
INFO [2021-03-11 14:28:14] plot_cnv_observation:Done writing observation groupings/color.
INFO [2021-03-11 14:28:14] plot_cnv_observation:Writing observation heatmap thresholds.
INFO [2021-03-11 14:28:14] plot_cnv_observation:Done writing observation heatmap thresholds.
INFO [2021-03-11 14:28:14] Colors for breaks: #00008B,#24249B,#4848AB,#6D6DBC,#9191CC,#B6B6DD,#DADAEE,#FFFFFF,#EEDADA,#DDB6B6,#CC9191,#BC6D6D,#AB4848,#9B2424,#8B0000
INFO [2021-03-11 14:28:14] Quantiles of plotted data range: 0,0,0.654166120340874,0.837559084106656,0.984422691407214
INFO [2021-03-11 14:28:14] plot_cnv_observations:Writing observation data to plot_out2//BayesNetOutput.HMMi6.hmm_mode-samples/infercnv.NormalProbabilities.PostFiltering.observations.txt
INFO [2021-03-11 14:28:15] plot_cnv_references:Start
INFO [2021-03-11 14:28:15] Reference data size: Cells= 104 Genes= 2758
INFO [2021-03-11 14:28:15] plot_cnv_references:Number reference groups= 1
INFO [2021-03-11 14:28:15] plot_cnv_references:Plotting heatmap.
INFO [2021-03-11 14:28:15] Colors for breaks: #00008B,#24249B,#4848AB,#6D6DBC,#9191CC,#B6B6DD,#DADAEE,#FFFFFF,#EEDADA,#DDB6B6,#CC9191,#BC6D6D,#AB4848,#9B2424,#8B0000
INFO [2021-03-11 14:28:15] Quantiles of plotted data range: 0,0,0,0,0
INFO [2021-03-11 14:28:15] plot_cnv_references:Writing reference data to plot_out2//BayesNetOutput.HMMi6.hmm_mode-samples/infercnv.NormalProbabilities.PostFiltering.references.txt
INFO [2021-03-11 14:28:18] ::plot_cnv:Start
INFO [2021-03-11 14:28:18] ::plot_cnv:Current data dimensions (r,c)=2758,161 Total=1373439 Min=1 Max=6.
INFO [2021-03-11 14:28:18] ::plot_cnv:Depending on the size of the matrix this may take a moment.
INFO [2021-03-11 14:28:19] plot_cnv_observation:Start
INFO [2021-03-11 14:28:19] Observation data size: Cells= 57 Genes= 2758
INFO [2021-03-11 14:28:19] plot_cnv_observation:Writing observation groupings/color.
INFO [2021-03-11 14:28:19] plot_cnv_observation:Done writing observation groupings/color.
INFO [2021-03-11 14:28:19] plot_cnv_observation:Writing observation heatmap thresholds.
INFO [2021-03-11 14:28:19] plot_cnv_observation:Done writing observation heatmap thresholds.
INFO [2021-03-11 14:28:19] Colors for breaks: #00008B,#24249B,#4848AB,#6D6DBC,#9191CC,#B6B6DD,#DADAEE,#FFFFFF,#EEDADA,#DDB6B6,#CC9191,#BC6D6D,#AB4848,#9B2424,#8B0000
INFO [2021-03-11 14:28:19] Quantiles of plotted data range: 1,3,3,4,6
INFO [2021-03-11 14:28:19] plot_cnv_observations:Writing observation data to plot_out2//infercnv.18_HMM_pred.Bayes_Net.Pnorm_0.5.observations.txt
INFO [2021-03-11 14:28:20] plot_cnv_references:Start
INFO [2021-03-11 14:28:20] Reference data size: Cells= 104 Genes= 2758
INFO [2021-03-11 14:28:20] plot_cnv_references:Number reference groups= 1
INFO [2021-03-11 14:28:20] plot_cnv_references:Plotting heatmap.
INFO [2021-03-11 14:28:20] Colors for breaks: #00008B,#24249B,#4848AB,#6D6DBC,#9191CC,#B6B6DD,#DADAEE,#FFFFFF,#EEDADA,#DDB6B6,#CC9191,#BC6D6D,#AB4848,#9B2424,#8B0000
INFO [2021-03-11 14:28:20] Quantiles of plotted data range: 3,3,3,3,3
INFO [2021-03-11 14:28:20] plot_cnv_references:Writing reference data to plot_out2//infercnv.18_HMM_pred.Bayes_Net.Pnorm_0.5.references.txt
INFO [2021-03-11 14:28:21]

STEP 19: Converting HMM-based CNV states to repr expr vals

INFO [2021-03-11 14:28:23] ::plot_cnv:Start
INFO [2021-03-11 14:28:23] ::plot_cnv:Current data dimensions (r,c)=2758,161 Total=466325 Min=0 Max=3.
INFO [2021-03-11 14:28:23] ::plot_cnv:Depending on the size of the matrix this may take a moment.
INFO [2021-03-11 14:28:24] plot_cnv_observation:Start
INFO [2021-03-11 14:28:24] Observation data size: Cells= 57 Genes= 2758
INFO [2021-03-11 14:28:24] plot_cnv_observation:Writing observation groupings/color.
INFO [2021-03-11 14:28:24] plot_cnv_observation:Done writing observation groupings/color.
INFO [2021-03-11 14:28:24] plot_cnv_observation:Writing observation heatmap thresholds.
INFO [2021-03-11 14:28:24] plot_cnv_observation:Done writing observation heatmap thresholds.
INFO [2021-03-11 14:28:24] Colors for breaks: #00008B,#24249B,#4848AB,#6D6DBC,#9191CC,#B6B6DD,#DADAEE,#FFFFFF,#EEDADA,#DDB6B6,#CC9191,#BC6D6D,#AB4848,#9B2424,#8B0000
INFO [2021-03-11 14:28:24] Quantiles of plotted data range: 0,1,1,1.5,3
INFO [2021-03-11 14:28:24] plot_cnv_observations:Writing observation data to plot_out2//infercnv.19_HMM_predHMMi6.hmm_mode-samples.Pnorm_0.5.repr_intensities.observations.txt
INFO [2021-03-11 14:28:24] plot_cnv_references:Start
INFO [2021-03-11 14:28:24] Reference data size: Cells= 104 Genes= 2758
INFO [2021-03-11 14:28:24] plot_cnv_references:Number reference groups= 1
INFO [2021-03-11 14:28:24] plot_cnv_references:Plotting heatmap.
INFO [2021-03-11 14:28:24] Colors for breaks: #00008B,#24249B,#4848AB,#6D6DBC,#9191CC,#B6B6DD,#DADAEE,#FFFFFF,#EEDADA,#DDB6B6,#CC9191,#BC6D6D,#AB4848,#9B2424,#8B0000
INFO [2021-03-11 14:28:24] Quantiles of plotted data range: 1,1,1,1,1
INFO [2021-03-11 14:28:25] plot_cnv_references:Writing reference data to plot_out2//infercnv.19_HMM_predHMMi6.hmm_mode-samples.Pnorm_0.5.repr_intensities.references.txt
INFO [2021-03-11 14:28:25]

STEP 21: Denoising

INFO [2021-03-11 14:28:25] ::process_data:Remove noise, noise threshold defined via ref mean sd_amplifier: 1.5
INFO [2021-03-11 14:28:25] denoising using mean(normal) +- sd_amplifier * sd(normal) per gene per cell across all data
INFO [2021-03-11 14:28:25] :: **** clear_noise_via_ref_quantiles **** : removing noise between bounds: 0.950161189787372 - 1.05101839800469
INFO [2021-03-11 14:28:27] ::plot_cnv:Start
INFO [2021-03-11 14:28:27] ::plot_cnv:Current data dimensions (r,c)=2758,161 Total=444846.118740976 Min=0.7259085460275 Max=1.27974740879628.
INFO [2021-03-11 14:28:27] ::plot_cnv:Depending on the size of the matrix this may take a moment.
INFO [2021-03-11 14:28:28] plot_cnv(): auto thresholding at: (0.885424 , 1.118216)
INFO [2021-03-11 14:28:29] plot_cnv_observation:Start
INFO [2021-03-11 14:28:29] Observation data size: Cells= 57 Genes= 2758
INFO [2021-03-11 14:28:29] plot_cnv_observation:Writing observation groupings/color.
INFO [2021-03-11 14:28:29] plot_cnv_observation:Done writing observation groupings/color.
INFO [2021-03-11 14:28:29] plot_cnv_observation:Writing observation heatmap thresholds.
INFO [2021-03-11 14:28:29] plot_cnv_observation:Done writing observation heatmap thresholds.
INFO [2021-03-11 14:28:29] Colors for breaks: #00008B,#24249B,#4848AB,#6D6DBC,#9191CC,#B6B6DD,#DADAEE,#FFFFFF,#EEDADA,#DDB6B6,#CC9191,#BC6D6D,#AB4848,#9B2424,#8B0000
INFO [2021-03-11 14:28:29] Quantiles of plotted data range: 0.885424074744207,1.00058979389603,1.00058979389603,1.00058979389603,1.11821578824489
INFO [2021-03-11 14:28:29] plot_cnv_observations:Writing observation data to plot_out2//infercnv.21_denoised.observations.txt
INFO [2021-03-11 14:28:29] plot_cnv_references:Start
INFO [2021-03-11 14:28:29] Reference data size: Cells= 104 Genes= 2758
INFO [2021-03-11 14:28:30] plot_cnv_references:Number reference groups= 1
INFO [2021-03-11 14:28:30] plot_cnv_references:Plotting heatmap.
INFO [2021-03-11 14:28:30] Colors for breaks: #00008B,#24249B,#4848AB,#6D6DBC,#9191CC,#B6B6DD,#DADAEE,#FFFFFF,#EEDADA,#DDB6B6,#CC9191,#BC6D6D,#AB4848,#9B2424,#8B0000
INFO [2021-03-11 14:28:30] Quantiles of plotted data range: 0.885424074744207,1.00058979389603,1.00058979389603,1.00058979389603,1.11821578824489
INFO [2021-03-11 14:28:30] plot_cnv_references:Writing reference data to plot_out2//infercnv.21_denoised.references.txt
INFO [2021-03-11 14:28:32]

Making the final infercnv heatmap

INFO [2021-03-11 14:28:32] ::plot_cnv:Start
INFO [2021-03-11 14:28:32] ::plot_cnv:Current data dimensions (r,c)=2758,161 Total=444846.118740976 Min=0.7259085460275 Max=1.27974740879628.
INFO [2021-03-11 14:28:32] ::plot_cnv:Depending on the size of the matrix this may take a moment.
INFO [2021-03-11 14:28:34] plot_cnv(): auto thresholding at: (0.881784 , 1.118216)
INFO [2021-03-11 14:28:34] plot_cnv_observation:Start
INFO [2021-03-11 14:28:34] Observation data size: Cells= 57 Genes= 2758
INFO [2021-03-11 14:28:34] plot_cnv_observation:Writing observation groupings/color.
INFO [2021-03-11 14:28:34] plot_cnv_observation:Done writing observation groupings/color.
INFO [2021-03-11 14:28:34] plot_cnv_observation:Writing observation heatmap thresholds.
INFO [2021-03-11 14:28:34] plot_cnv_observation:Done writing observation heatmap thresholds.
INFO [2021-03-11 14:28:34] Colors for breaks: #00008B,#24249B,#4848AB,#6D6DBC,#9191CC,#B6B6DD,#DADAEE,#FFFFFF,#EEDADA,#DDB6B6,#CC9191,#BC6D6D,#AB4848,#9B2424,#8B0000
INFO [2021-03-11 14:28:34] Quantiles of plotted data range: 0.881784211755114,1.00058979389603,1.00058979389603,1.00058979389603,1.11821578824489
INFO [2021-03-11 14:28:34] plot_cnv_observations:Writing observation data to plot_out2//infercnv.observations.txt
INFO [2021-03-11 14:28:35] plot_cnv_references:Start
INFO [2021-03-11 14:28:35] Reference data size: Cells= 104 Genes= 2758
INFO [2021-03-11 14:28:35] plot_cnv_references:Number reference groups= 1
INFO [2021-03-11 14:28:35] plot_cnv_references:Plotting heatmap.
INFO [2021-03-11 14:28:35] Colors for breaks: #00008B,#24249B,#4848AB,#6D6DBC,#9191CC,#B6B6DD,#DADAEE,#FFFFFF,#EEDADA,#DDB6B6,#CC9191,#BC6D6D,#AB4848,#9B2424,#8B0000
INFO [2021-03-11 14:28:35] Quantiles of plotted data range: 0.881784211755114,1.00058979389603,1.00058979389603,1.00058979389603,1.11821578824489
INFO [2021-03-11 14:28:35] plot_cnv_references:Writing reference data to plot_out2//infercnv.references.txt
Warning messages:
1: In dir.create(out_dir) : 'plot_out2' already exists
2: In dir.create(out_dir) : 'plot_out2' already exists
3: In dir.create(out_dir) : 'plot_out2' already exists
4: In dir.create(out_dir) : 'plot_out2' already exists
5: In dir.create(out_dir) : 'plot_out2' already exists
6: In dir.create(out_dir) : 'plot_out2' already exists
7: In dir.create(out_dir) : 'plot_out2' already exists

end_time <- Sys.time()
end_time - start_time
Time difference of 7.921937 mins
end_time
[1] "2021-03-11 14:28:36 CST"
end_time - start_time
Time difference of 7.921937 mins

耗时步骤18 约5分钟

©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 216,402评论 6 499
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 92,377评论 3 392
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 162,483评论 0 353
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 58,165评论 1 292
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 67,176评论 6 388
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 51,146评论 1 297
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 40,032评论 3 417
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 38,896评论 0 274
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 45,311评论 1 310
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 37,536评论 2 332
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 39,696评论 1 348
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 35,413评论 5 343
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 41,008评论 3 325
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 31,659评论 0 22
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 32,815评论 1 269
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 47,698评论 2 368
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 44,592评论 2 353

推荐阅读更多精彩内容