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

Problem with unequal lists #2

Closed
gdevenyi opened this issue Sep 16, 2020 · 2 comments
Closed

Problem with unequal lists #2

gdevenyi opened this issue Sep 16, 2020 · 2 comments

Comments

@gdevenyi
Copy link

Hello,

I have lists with size 19100 and 19085 respectively. When I use the RRHO function to do an overlap comparison, I end up with a single item in the output:

> test = RRHO(chimp_rel_rrho, human_rel_rrho, stepsize = 100, alternative = "two.sided")
> test
$hypermat
          [,1]
[1,] 0.6931472

$hypermat.counts
     [,1]
[1,]    0

$hypermat.signs
     [,1]
[1,]   -1

$hypermat.by
[1] NA

$n.items
[1] 19100

$stepsize
[1] 100

$log10.ind
[1] FALSE

$call
RRHO(list1 = chimp_rel_rrho, list2 = human_rel_rrho, stepsize = 100, 
    alternative = "two.sided")

I'm not sure it's valid to have different lengths of lists, but this doesn't seem to be documented or throw any kind of error.

@gdevenyi
Copy link
Author

Issue turned out to be I didn't have dataframes, I had Tibbles which almost work most of the time, but failed in some silent ways when the code tried to calculate length.

Suggest perhaps that inputs be coerced to dataframes before processing.

@johnros
Copy link
Owner

johnros commented Sep 22, 2020 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