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

Providing correlation matrix from dataset #7

Open
ljschumacher opened this issue May 11, 2023 · 1 comment
Open

Providing correlation matrix from dataset #7

ljschumacher opened this issue May 11, 2023 · 1 comment

Comments

@ljschumacher
Copy link

Reading the ESCO paper I was under the impression I could provide a real dataset and simulate data with correlation (in the copula) as estimated from the dataset. However it is not clear from the documentation how to do that, could you clarify?

Looking into the code, I can also see that when type is 'type=="traj"(https://github.com/JINJINT/ESCO/blob/bf6d78c653dd06a38e092611265a76286ba6dfef/R/esco-simulate.R#LL1083C10-L1083C22), the parametercorris either expected to be a scalar (not a correlation matrix), or estimated usingrandcor` for the differentially expressed genes. Two things that are different to my expectations:

  1. One can only specify one correlation matrix, not one per cell type
  2. In the randcor function

    ESCO/R/utils.R

    Line 150 in bf6d78c

    randcor <- function(ngenes){
    , a "purified gene expression dataset" is used (https://www.eurekalert.org/pub_releases/2017-11/sfn-nwa111417.php), rather than a user-defined dataset. Is there a way to change this to a dataset of my choice?
@JINJINT
Copy link
Owner

JINJINT commented May 13, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants