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

unable to use function processed_meta #209

Closed
allaway opened this issue Dec 16, 2024 · 0 comments · Fixed by #210
Closed

unable to use function processed_meta #209

allaway opened this issue Dec 16, 2024 · 0 comments · Fixed by #210
Assignees
Labels
bug Something isn't working

Comments

@allaway
Copy link
Collaborator

allaway commented Dec 16, 2024

When running this code:

samplesheet <- "syn64398075" # samplesheet can be stored on Synapse or locally
syn_out <- "syn64387020"
fileview <- "syn51203588"

i <- map_sample_input_ss(samplesheet) #1
o <- map_sample_output_sarek(syn_out, fileview) #2

o$Strelka2 <- o$Strelka2 %>% 
  dplyr::mutate(sample = stringr::str_remove(sample, "_vs_.+"))

sarek_meta <- processed_meta(i, o, workflow_link = "https://github.com/nf-core/sarek/tree/3.2.2")

I get the error:

> sarek_meta <- processed_meta(i, o, workflow_link = "https://github.com/nf-core/sarek/tree/3.2.2")
Deriving annotations for 84 files from DeepVariant with bts:ProcessedVariantCallsTemplate
Error in rbindlist(lapply(setNames(Map(function(f, t) copy_annotations(f,  : 
  Item 1 of input is not a data.frame, data.table or list

I tested this with reticulate 1.28, 1.39, 1.40 and got the same error each time. I also tested this with synapseclient 4.3.1, 4.4.0, 4.6.0. I am using the current develop version of nfportalutils.

One interesting thing I noted is that synGetAnnotations from synapser seems to return an R list instead of a python Dict/Annotations object.

@anngvu anngvu moved this to Todo in NF-OSI Sprints Dec 16, 2024
@anngvu anngvu moved this from Todo to In Progress in NF-OSI Sprints Dec 17, 2024
@anngvu anngvu added the bug Something isn't working label Dec 17, 2024
@anngvu anngvu linked a pull request Dec 17, 2024 that will close this issue
@anngvu anngvu moved this from In Progress to Done in NF-OSI Sprints Dec 20, 2024
allaway pushed a commit that referenced this issue Dec 20, 2024
* Fix and clean up docs

* Update test and fix

* Update pkgdown index manually

* Fix some logic, including #208
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: Done
Development

Successfully merging a pull request may close this issue.

2 participants