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 interpp.old missing values and Infs not allowed #2

Open
qvhaelen opened this issue Sep 21, 2018 · 2 comments
Open

Error in interpp.old missing values and Infs not allowed #2

qvhaelen opened this issue Sep 21, 2018 · 2 comments

Comments

@qvhaelen
Copy link

Hello,

I try to use your method FUNNEL with a time series data (8 time points) and pathway database. I tried with the main function result <- FUNNEL.GSEA(X, tt, genesets), this example works well and works also when replacing genesets by my own pathway list "pathway_gene_list": FUNNEL.GSEA(X, tt, pathway_gene_list). however, when using my own transcription data, I got an error:

Error in interpp.old(x, y, z, xo, yo, ncp = 0, extrap = FALSE, duplicate = duplicate, :
missing values and Infs not allowed

the vector tt is adapted to contain the right number of time points. I have checked if the format of my matrix is the same than the one provided as an example and it is same data type:

str(X)
num [1:11189, 1:16] 2.26 9.38 1.96 8.19 7.53 ...

  • attr(, "dimnames")=List of 2
    ..$ : Named chr [1:11189] "NAT2" "ADA" "CDH2" "AKT3" ...
    .. ..- attr(
    , "names")= chr [1:11189] "10" "100" "1000" "10000" ...
    ..$ : chr [1:16] "t1" "t2" "t3" "t4" ...

str(x3array)
num [1:20340, 1:8] 0.366 0 1.077 0.169 0.139 ...

  • attr(, "dimnames")=List of 2
    ..$ : Named chr [1:20340] "A1BG" "A1BG-AS1" "A1CF" "A2LD1" ...
    .. ..- attr(
    , "names")= chr [1:20340] "10" "20" "30" "40" ...
    ..$ : chr [1:8] "t1" "t2" "t3" "t4" ...

there is no NA in the file. I do not know what to do or where to look to fix this error. Any advise or suggestion will be helpful?

thank you

Quentin

@yunzhang813
Copy link
Owner

yunzhang813 commented Sep 21, 2018 via email

@qvhaelen
Copy link
Author

hello

Thank you for the answer and information provided. nevertheless, I have to say I am still confused because of the following. When running FUNNEL using the example provided in the package, result <- FUNNEL.GSEA(X, tt, genesets), the program does indicate a warning saying that
Warning messages:
1: In interpp.old(x, y, z, xo, yo, ncp = 0, extrap = FALSE, duplicate = duplicate, :
interpp.old() is deprecated, future versions will only provide interpp()

But it is working anyway. The error message which stops the calculation (Error in interpp.old(x, y, z, xo, yo, ncp = 0, extrap = FALSE, duplicate = duplicate, :
missing values and Infs not allowed) appears only when running the same function using my own data X rather than the one provided in the FUNNEL package. Modifying the lsit of pathways for example does not generate error message.

thank you

quentin

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