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
Hi,
i had to make the following modifications to get readVizgen to load correctly:
exprsMat <- data.table::fread(file.path(data_dir, "cell_by_gene.csv"),colClasses = c(cell = 'character') ) cell_idx <- exprsMat[, 1] exprsMat <- exprsMat[, -1] exprsMat <- as(as.matrix(t(exprsMat)), "dgCMatrix") colnames(exprsMat) <- paste("Cell", unlist(cell_idx), sep = "_") exprsMat <- exprsMat[!grepl("Blank", rownames(exprsMat)), ] metadata <- read.csv(file.path(data_dir, "cell_metadata.csv"),colClasses = c(EntityID = 'character')) metadata$cell_id <- metadata$EntityID rownames(metadata) <- paste("Cell", metadata$cell_id, sep = "_") metadata <- metadata[colnames(exprsMat), ] metadata$cell_id <- metadata$EntityID rownames(metadata) <- paste("Cell", metadata$cell_id, sep = "_") metadata <- metadata[colnames(exprsMat), ] spe <- SpatialExperiment::SpatialExperiment(assay = list(counts = exprsMat), colData = DataFrame(metadata), spatialCoordsNames = c("center_x", "center_y"))
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
i had to make the following modifications to get readVizgen to load correctly:
The text was updated successfully, but these errors were encountered: