We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some samples may only have a subset of cell types. For example, c.names has 5 levels but cluster has 4 distinct numeric values.
c.names
cluster
Browse[2]> celltype <- as.factor(alldata$celltype[alldata$sample == x]) # Code from helper_CCI in helper_CCI.R Browse[2]> table(celltype) celltype dCAF iCAF mCAF tpCAF vCAF 202 492 242 737 0 Browse[2]> celltype_numeric <- as.numeric(celltype) # Code from helper_CCI in helper_CCI.R Browse[2]> table(celltype_numeric) celltype_numeric 1 2 3 4 202 492 242 737 Browse[2]> signal <- cell_signaling(data = data_dataframe, genes = rownames(data_dataframe), cluster = celltype_numeric, c.names = levels(celltype), write = FALSE) # Code from helper_CCI in helper_CCI.R Error in SingleCellSignalR::cell_signaling(data = data_dataframe, genes = rownames(data_dataframe), : The length of c.names must be equal to the number of clusters and must contain no duplicates.
scFeatures should gracefully drop empty factor levels like aFactor <- droplevels(aFactor) before cell_signaling function call.
aFactor <- droplevels(aFactor)
cell_signaling
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Some samples may only have a subset of cell types. For example,
c.names
has 5 levels butcluster
has 4 distinct numeric values.scFeatures should gracefully drop empty factor levels like
aFactor <- droplevels(aFactor)
beforecell_signaling
function call.The text was updated successfully, but these errors were encountered: