Skip to content

Commit

Permalink
Attempt to use local files for derfinder::getRegionCoverage() call. R…
Browse files Browse the repository at this point in the history
…elated to the workaround to lawremi/rtracklayer#83
  • Loading branch information
lcolladotor committed May 21, 2024
1 parent bf959c2 commit 9f0f8b4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions vignettes/recount-workflow.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -785,9 +785,6 @@ rse_er_scaled <- scale_counts(rse_er)
## To highlight that we scaled the counts
rm(rse_er)
## Remove files we no longer need
unlink("SRP045638/bw", recursive = TRUE)
```

Now that we have a scaled count matrix for the expressed regions, we can proceed with the DE analysis just like we did at the gene and exon feature levels (Figures \@ref(fig:erdeanalysis1), \@ref(fig:erdeanalysis2), \@ref(fig:erdeanalysis3), and \@ref(fig:erdeanalysis4)).
Expand Down Expand Up @@ -861,6 +858,10 @@ bws <- paste0(
colData(rse_er_scaled)$bigwig_file
)
## Workaround to https://github.com/lawremi/rtracklayer/issues/83: use the local
## files we already downloaded
bws <- gsub("http://duffel.rail.bio/recount/", "", bws)
## Note that they are also present in the recount_url data.frame
bws <- recount_url$url[match(
colData(rse_er_scaled)$bigwig_file,
Expand Down Expand Up @@ -1000,6 +1001,7 @@ session_info()
```{r clean_up, echo = FALSE}
## Delete big files
unlink(dir("SRP045638", "rse_", full.names = TRUE))
unlink("SRP045638/bw", recursive = TRUE)
```


Expand Down

0 comments on commit 9f0f8b4

Please sign in to comment.