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

gdc_rnaseq.R: available_rnaseq_workflows() returns NULL #61

Open
lyijin opened this issue Jul 17, 2018 · 0 comments
Open

gdc_rnaseq.R: available_rnaseq_workflows() returns NULL #61

lyijin opened this issue Jul 17, 2018 · 0 comments

Comments

@lyijin
Copy link

lyijin commented Jul 17, 2018

hi there,

i think there's a bug with the available_rnaseq_workflows() function--and i think i know what the problem is.

possible_workflows = files() %>% GenomicDataCommons::filter(~data_type == 
    "Gene Expression Quantification" & data_type == "Gene Expression Quantification") %>% 
    facet("analysis.workflow_type") %>% aggregations()

produces

> possible_workflows
$`analysis.workflow_type`
              key doc_count
1  HTSeq - Counts     11571
2    HTSeq - FPKM     11571
3 HTSeq - FPKM-UQ     11571

which means that the return statement in the function

return(possible_workflows[["key"]])

returns NULL because one has to refer to $analysis.workflow_type.

either of these replacements would work, and produce the intended return values!

> possible_workflows[['analysis.workflow_type']][['key']]
[1] "HTSeq - Counts"  "HTSeq - FPKM"    "HTSeq - FPKM-UQ"
> possible_workflows[[1]][['key']]
[1] "HTSeq - Counts"  "HTSeq - FPKM"    "HTSeq - FPKM-UQ"
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

1 participant