Skip to content

Commit

Permalink
ignore flaky web stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
flying-sheep committed Nov 18, 2024
1 parent 339d0ba commit 3d7289d
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions vignettes/Gene-Relevance.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,13 @@ gms[-1] %>% map(~ .$ids[1:10]) %>% purrr::reduce(base::intersect) %>% cat(sep =
```

```{r}
httr::GET('https://rest.uniprot.org/uniprotkb/search', query = list(
fields = 'accession,gene_names,cc_tissue_specificity',
format = 'tsv',
query = rowData(allen)$Uniprot[gms$cosine$ids[1:6]] %>% unlist() %>% paste(collapse = ' OR ')
)) %>%
httr::content(type = 'text/tab-separated-values', encoding = 'utf-8')
options(readr.show_col_types = FALSE)
tryCatch({
httr::GET('https://rest.uniprot.org/uniprotkb/search', query = list(
fields = 'accession,gene_names,cc_tissue_specificity',
format = 'tsv',
query = rowData(allen)$Uniprot[gms$cosine$ids[1:6]] %>% unlist() %>% paste(collapse = ' OR ')
)) %>%
httr::content(type = 'text/tab-separated-values', encoding = 'utf-8')
}, error = function(e) e)
```

0 comments on commit 3d7289d

Please sign in to comment.