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

[BUG] different row counts implied by arguments error at expand_sra_attributes() #35

Open
ivokwee opened this issue Aug 23, 2023 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@ivokwee
Copy link

ivokwee commented Aug 23, 2023

Describe the bug

DataFrame dimension mismatch error using data from project SRP017465

rse_expanded <- expand_sra_attributes(rse)
Error in DataFrame(..., check.names = FALSE) : 
  different row counts implied by arguments

Provide a minimally reproducible example (reprex)

library(recount3)
projects <- available_projects("human")
rse <- create_rse(projects[3,])
rse_expanded <- expand_sra_attributes(rse)

Possible solution

This project seems to have sra.sample_attributes that are empty and thus gives a dimension mismatch when doing rbind. Solution is to add NA in expand_sra_attributes() for empty lines before doing rbind.

d[which(sapply(d,length)==0)] <- NA

@lcolladotor
Copy link
Member

Can you tell us what is in projects[3,]? Otherwise we can't reproduce this issue.

@ivokwee
Copy link
Author

ivokwee commented Oct 16, 2023

I believe it is the entry for SRP017465

@lcolladotor lcolladotor added the bug Something isn't working label Nov 30, 2023
@lcolladotor lcolladotor added this to the bioc v3.20 milestone Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

2 participants