Entering edit mode
4.4 years ago
yzhao140
•
0
I have installed Signac. But there is a error that there is not a function called "CreateChromatinAssay".
library(Signac)
library(Seurat)
library(GenomeInfoDb)
library(EnsDb.Hsapiens.v75)
library(ggplot2)
library(patchwork)
library(hdf5r)
set.seed(1234)
counts = Read10X_h5(filename = "atac_v1_pbmc_10k_filtered_peak_bc_matrix.h5")
metadata = read.csv(file = "atac_v1_pbmc_10k_singlecell.csv",header = TRUE,row.names = 1)
chrom_assay = CreateChromatinAssay(
counts = counts,
sep = c(":", "-"),
genome = 'hg19',
#fragments = 'atac_v1_pbmc_10k_fragments.tsv.gz',
min.cells = 10,
min.features = 200
)