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 getb0.rnaseq() #7

Open
RK1912 opened this issue Feb 25, 2021 · 11 comments
Open

Error in getb0.rnaseq() #7

RK1912 opened this issue Feb 25, 2021 · 11 comments

Comments

@RK1912
Copy link

RK1912 commented Feb 25, 2021

Hi
I am running deconvSeq for deconvolving 200 bulk samples.
My current data looks like this :
single cell data : ~10,000 genes and ~2500 unique cell IDs and their corresponding cell types in the metadata.
Also the single cell data is multi subject and the sample names are given under the subjectname column in the metadata.
bulk data : ~10000 genes and 200 individuals.

I get the following error:

Error in dimnames(x) <- dn : 
  length of 'dimnames' [2] not equal to array extent 
3.`colnames<-`(`*tmp*`, value = colnb0) 
2.deconvSeq::getb0.rnaseq(dge.singlecell, design.singlecell, ncpm.min = 1, 
    nsamp.min = 4) at helper_functions.R#668

Please let me know how I can fix this.

Thanks,
RK

@rosedu1
Copy link
Owner

rosedu1 commented Feb 26, 2021

Can you send me a small example of your data?
Rose

@RK1912
Copy link
Author

RK1912 commented Feb 26, 2021

Hi Rose,
Here is my data:
https://github.com/RK1912/Deconv_data

Thanks ,
RK

@rosedu1
Copy link
Owner

rosedu1 commented Feb 27, 2021

I am unable to open the files, they are corrupted somehow. You can just send me a toy example with a few lines so that I can check on the formatting.

@RK1912
Copy link
Author

RK1912 commented Feb 28, 2021

hi

Let me know if you have access to the files .
I also provided the script I used for running deconvseq.
https://drive.google.com/drive/folders/1e3JlxFqqyRZKiLHV1wtjJxHAIe5Pthso?usp=sharing

Thanks !

@RK1912
Copy link
Author

RK1912 commented Mar 5, 2021

Hi
Were you able to access the data and run the deconvolution with it ?
Let me know so I can make any corrections if necessary.
RK

@rosedu1
Copy link
Owner

rosedu1 commented Mar 7, 2021

I am still unable to open them:

load("/Users/rdu/Downloads/meta.rds")
Error in load("/Users/rdu/Downloads/meta.rds") :
bad restore file magic number (file may be corrupted) -- no data loaded
In addition: Warning messages:
1: In readChar(con, 5L, useBytes = TRUE) :
truncating string with embedded nuls
2: file ‘meta.rds’ has magic number 'X'
Use of save versions prior to 2 is deprecated

If you can copy and paste a small portion of your file (e.g. a few lines, a few methylation sites), I can at least see the formatting that you used.
Rose

@vjcitn
Copy link
Collaborator

vjcitn commented Mar 7, 2021

Hi @rosedu1 -- you need to use readRDS not load for .rds files. I am checking into this report now and will get back shortly.

@rosedu1
Copy link
Owner

rosedu1 commented Mar 7, 2021

I am able to load it now. Will take a look

@vjcitn
Copy link
Collaborator

vjcitn commented Mar 7, 2021

The 'sc' is not counts.

> sc["RLIM", 5:10]
     S027_L6Q3_H01 S027_L5Q2_K14 S010_L1Q2_E08 S033_L6Q4_N18 S006_L2Q4_F08
RLIM       0.47088             0     0.5283183     0.4271253             0
     S006_L1Q1_E21
RLIM     0.4536176

@vjcitn
Copy link
Collaborator

vjcitn commented Mar 7, 2021

The documentation and the example in the package are explicit that the expression data need
to be in the form of counts. However, the error that was produced shows that the software needs
some improvement in a) recognizing when non-count data are supplied, and failing at that point, b)
3.colnames<-(tmp, value = colnb0) error arose when b0 could not be estimated for any
gene. the b0 matrix was completely NA and colnb0 was just a scalar zero. This needs to be
bulletproofed.

@rosedu1
Copy link
Owner

rosedu1 commented Mar 7, 2021

Thanks. I will add in the error messages

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

3 participants