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

Error in sample.int(length(x), size, replace, prob) : invalid first argument #2

Open
jacobHog opened this issue Jan 17, 2024 · 0 comments

Comments

@jacobHog
Copy link

Hi,

I am attempting to use your tool to create a signature matrix for deconvolution of bulk-rna sequencing data, but I am running into the error of the title (Error in sample.int(length(x), size, replace, prob) : invalid first argument).

My expression and meta data is stored locally as .txt files, and I loaded the data using read.table.
The data looks as such:

sig_exp[1:3, 1:3]
      1772094169_G10 1772072247_E09 1772094174_H05
Xkr4               0              0              0
Rp1                0              0              0
Sox17              0              0              0
sig_meta[1:3, 1:4]
         Cell_ID Cell_type Timepoint Total_Molecules
1 1772094169_G10    mPeric     E12.5            7874
2 1772072247_E09    mPeric     E18.5            3701
3 1772094174_H05    mPeric     E14.5            2878

However, when attempting to use the code:

geps <- aggregateGEP(
  sig_exp, 
  sig_meta, 
  cell_types = names(table(sig_meta$Cell_type)),
  celltype_column = "Cell_type",
  scale_factor = 10000,
  num_gep = 5,
  verbose = TRUE
)

I get the error message of the title.
Can you help me to debug this error?
Thank you very much

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

1 participant