Skip to content
New issue

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

Update RNAIntegration.R #2178

Open
wants to merge 7 commits into
base: dev
Choose a base branch
from
Open

Commits on Apr 14, 2023

  1. Update auto-comment.yml

    rcorces authored Apr 14, 2023
    Configuration menu
    Copy the full SHA
    71419d3 View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2023

  1. Update auto-comment.yml

    rcorces authored Apr 19, 2023
    Configuration menu
    Copy the full SHA
    bc620af View commit details
    Browse the repository at this point in the history

Commits on May 17, 2023

  1. Update auto-comment.yml

    rcorces authored May 17, 2023
    Configuration menu
    Copy the full SHA
    e18f7c3 View commit details
    Browse the repository at this point in the history
  2. Merge pull request GreenleafLab#1953 from GreenleafLab/rcorces-patch-1

    Update auto-comment.yml
    rcorces authored May 17, 2023
    Configuration menu
    Copy the full SHA
    c61b064 View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2024

  1. Update auto-comment.yml

    rcorces authored Feb 26, 2024
    Configuration menu
    Copy the full SHA
    322d6cb View commit details
    Browse the repository at this point in the history
  2. Merge pull request GreenleafLab#2122 from GreenleafLab/rcorces-patch-2

    Update auto-comment.yml
    rcorces authored Feb 26, 2024
    Configuration menu
    Copy the full SHA
    d9e741c View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2024

  1. Update RNAIntegration.R

    when running addGeneIntegrationMatrix function, it will occur this error:
    "Error in slot(object = object, name = \"features\")[[layer]] <- features : \n  more elements supplied than there are to replace\n"
    
    After repeated testing, I finally know the answer to this question:
    This error occurred in the RNAIntegration.R of the ArchR package This code in the RNAIntegration.R file: seuratATAC <- Seurat::CreateSeuratObject(counts = mat[head(seq_len(nrow(mat)), 5), , drop = FALSE])
    The Seurat::CreateSeuratObject function requires that the rownames of mat must be vector, not matrix. But the rownames passed to mat in the previous code was actually a matrix, so you only need to add a command line before this code, this will cast the rownames of mat to a vector:
    rownames(mat) <- as.character(rownames(mat))
    And then this error was completely eliminated.
    ZhangFuchang authored Jun 29, 2024
    Configuration menu
    Copy the full SHA
    2015587 View commit details
    Browse the repository at this point in the history