By default, when adding an inferCNV run to a Seurat object using add_to_seurat, the column names are uniform for all samples (hasproportion.cnv, top_loss, has_dupli, etc.) This means, for multiple different inferCNV runs from the same sample, adding these results to the Seurat object will overwrite the previous results added, so there is no option to add multiple inferCNV runs to a Seurat object without replacing existing results.
This PR allows for an optional function input that is a column prefix. The prefix can be appended to the columns of the results in the Seurat metadata, so that multiple runs can be added to the metadata. By default, the input is NULL, which means that no column prefix gets added.
Example below where inferCNV results are added from two different runs, and identified using two different column prefixes.
With the resulting plot, we can view the results of two inferCNV runs side by side and differentiate by the column prefix to see predicted CNV differences.
just pinging to see if there is any interest in this. the CI build failed from what appears to be a package incompatibility that is affecting all commits.
By default, when adding an inferCNV run to a Seurat object using
add_to_seurat
, the column names are uniform for all samples (hasproportion.cnv, top_loss, has_dupli, etc.) This means, for multiple different inferCNV runs from the same sample, adding these results to the Seurat object will overwrite the previous results added, so there is no option to add multiple inferCNV runs to a Seurat object without replacing existing results.This PR allows for an optional function input that is a column prefix. The prefix can be appended to the columns of the results in the Seurat metadata, so that multiple runs can be added to the metadata. By default, the input is NULL, which means that no column prefix gets added.
Example below where inferCNV results are added from two different runs, and identified using two different column prefixes.
With the resulting plot, we can view the results of two inferCNV runs side by side and differentiate by the column prefix to see predicted CNV differences.