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

always got an Error when running DeClust #1

Open
hfl112 opened this issue Sep 1, 2021 · 2 comments
Open

always got an Error when running DeClust #1

hfl112 opened this issue Sep 1, 2021 · 2 comments

Comments

@hfl112
Copy link

hfl112 commented Sep 1, 2021

Hi developers,
I encountered the same error when using the TCGA data to test.
I have use nneg to remove the negative values, and also use 0 replace the NA
But I always have this error:

> deClustFromMarker(k_ng[,1:10],2)
[1] 0.1
[1] 0.1
[1] 0.2
[1] 0.1
[1] 0.3
[1] 0.1
[1] 0.4
[1] 0.1
[1] 0.5
[1] 0.1
[1] 0.6
[1] 0.1
[1] 0.7
[1] 0.1
[1] 0.8
[1] 0.1
[1] 0.9
[1] 0.1
[1] 0.2
[1] 0.3
[1] 0.4
[1] 0.5
[1] 0.6
[1] 0.7
[1] 0.8
[1] 0.9
[1] 1
[1] 1
[1] 0.1
[1] 0.2
[1] 0.3
[1] 0.4
[1] 0.5
[1] 0.6
[1] 0.7
[1] 0.8
[1] 0.9
[1] 1
Error in { :
  task 1 failed - "NA/NaN/Inf in foreign function call (arg 1)"

How to deal with the input expression data? should I use other format like raw reads count? (Here, I use the RNASEQV2 data of TCGA samples)

Thanks,
Funan

@youngjaewoo
Copy link

The input data should be something like TPM without negative value, and try removing genes with SD of zero.

@hfl112
Copy link
Author

hfl112 commented Sep 2, 2021

The input data should be something like TPM without negative value, and try removing genes with SD of zero.

I tried, but still got this error:

library(DeClust)
Ibrary(NMF)
library(genefilter) 

test = read.table("UCS.raw.exp.txt", header=T, row.names=1, sep ='\t')

#filter SD
test_sd<-rowSds(test)
test = test[names(test_sd[test_sd>1.5]), ]

#input should be non-log-normalized & non-negative
k_ng = as.matrix(test)
k_ng = nneg(k_ng)

r<-deClustFromMarker(k_ng,2)

> r<-deClustFromMarker(k_ng,2)
[1] 0.1
[1] 0.1
[1] 0.2
[1] 0.1
[1] 0.3
[1] 0.1
[1] 0.4
[1] 0.1
[1] 0.5
[1] 0.1
[1] 0.6
[1] 0.1
[1] 0.7
[1] 0.1
[1] 0.8
[1] 0.1
[1] 0.9
[1] 0.1
[1] 1
[1] 0.1
Error in { :
  task 1 failed - "NA/NaN/Inf in foreign function call (arg 1)"
In addition: Warning message:
executing %dopar% sequentially: no parallel backend registered

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