Skip to content

Commit

Permalink
fix ena
Browse files Browse the repository at this point in the history
  • Loading branch information
opitzl committed Jun 13, 2024
1 parent 470be0d commit 89a39c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/app-ENA.R
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ ezMethodGetEnaData <- function(input=NA, output=NA, param=NA){
} else {
tryCatch({
experimentID <- xmlToList(runInfo)[[1]]$EXPERIMENT_REF$.attrs
if(length(experimentID) > 1){
experimentID <- experimentID['accession']
}
cmd = paste0("curl -o ", experimentID,".xml ", "-X GET \'https://www.ebi.ac.uk/ena/browser/api/xml/",experimentID,"?download=true\'")
ezSystem(cmd)
xml <- xmlParse(paste0(experimentID, '.xml'))
Expand Down

0 comments on commit 89a39c4

Please sign in to comment.