Skip to content

LinkPeaks with a single gene #629

@XinWang19

Description

@XinWang19

Hi,
When I performed LinkPeaks with a single gene name like:

LinkPeaks(
object = seurat.obj,
peak.assay = "ATAC",
expression.assay = "RNA",
genes.use = "INS")

It returned:

No peaks fall within distance threshold 
Have you set the proper genome and seqlevelsStyle for ATAC assay?"

I found the problem is caused by line 51 and 57. When genes.use is a single character, the expression.data will become a vector without a row.name.

expression.data <- expression.data[genes.keep, ]
genes <- rownames(x = expression.data)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions