Skip to content

Commit

Permalink
Delete manuscript folder
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 11, 2024
1 parent 503cc97 commit 6a360b1
Show file tree
Hide file tree
Showing 27 changed files with 44 additions and 31 deletions.
25 changes: 19 additions & 6 deletions make_screenshots.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ if (!('optparse' %in% installed.packages())) {
# install.packages("optparse", repos = "http://cran.us.r-project.org")
}

webshot::install_phantomjs()
# Find .git root directory
root_dir <- rprojroot::find_root(rprojroot::has_dir(".git"))


Sys.setenv("CHROMOTE_CHROME" = "/usr/bin/vivaldi")

library(optparse)
library(magrittr)
Expand Down Expand Up @@ -55,20 +59,29 @@ if (is.null(opt$base_url)) {
base_url <- gsub("/$", "", base_url)
}

chapt_df <- ottrpal::get_chapters(base_url = file.path(base_url, "no_toc/"))
# Collect all the chapter pages for the url given
chapt_df <- ottrpal::get_chapters(html_page = file.path(root_dir, "docs", "index.html"),
base_url = base_url)

# Now take screenshots for each
file_names <- lapply(chapt_df$url, function(url) {
file_name <- gsub(".html", ".png", file.path(output_folder, basename(url)))
# Get rid of special characters
webshot::webshot(url, file_name)

# Get rid of special characters because leanpub no like
file_name <- gsub(":|?|!|\\'", "", file_name)
message(paste("Screenshot saved:", file_name))

# Take the screenshot
webshot2::webshot(url, file = file_name)

return(file_name)

})

# Save file of chapter urls and file_names
chapt_df <- chapt_df %>%
dplyr::mutate(img_path = unlist(file_names))

chapt_df %>%
dplyr::mutate(img_path = unlist(file_names)) %>%
readr::write_tsv(file.path(output_folder, "chapter_urls.tsv"))

message(paste("Image Chapter key written to: ", file.path(output_folder, "chapter_urls.tsv")))
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/chapt_screen_images/about-the-authors.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/chapt_screen_images/annotating-genomes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/chapt_screen_images/atac-seq-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/chapt_screen_images/bulk-rna-seq-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 25 additions & 25 deletions resources/chapt_screen_images/chapter_urls.tsv
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
url chapt_title img_path
https://hutchdatascience.org/Choosing_Genomics_Tools/no_toc/index.html About this Course resources/chapt_screen_images/index.png
https://hutchdatascience.org/Choosing_Genomics_Tools/no_toc/introduction.html 1 Introduction resources/chapt_screen_images/introduction.png
https://hutchdatascience.org/Choosing_Genomics_Tools/no_toc/a-very-general-genomics-overview.html 2 A Very General Genomics Overview resources/chapt_screen_images/a-very-general-genomics-overview.png
https://hutchdatascience.org/Choosing_Genomics_Tools/no_toc/guidelines-for-good-metadata.html 3 Guidelines for Good Metadata resources/chapt_screen_images/guidelines-for-good-metadata.png
https://hutchdatascience.org/Choosing_Genomics_Tools/no_toc/considerations-for-choosing-tools.html 4 Considerations for choosing tools resources/chapt_screen_images/considerations-for-choosing-tools.png
https://hutchdatascience.org/Choosing_Genomics_Tools/no_toc/general-data-analysis-tools.html 5 General Data Analysis Tools resources/chapt_screen_images/general-data-analysis-tools.png
https://hutchdatascience.org/Choosing_Genomics_Tools/no_toc/sequencing-data.html 6 Sequencing Data resources/chapt_screen_images/sequencing-data.png
https://hutchdatascience.org/Choosing_Genomics_Tools/no_toc/microarray-data.html 7 Microarray Data resources/chapt_screen_images/microarray-data.png
https://hutchdatascience.org/Choosing_Genomics_Tools/no_toc/annotating-genomes.html 8 Annotating Genomes resources/chapt_screen_images/annotating-genomes.png
https://hutchdatascience.org/Choosing_Genomics_Tools/no_toc/dna-methods-overview.html 9 DNA Methods Overview resources/chapt_screen_images/dna-methods-overview.png
https://hutchdatascience.org/Choosing_Genomics_Tools/no_toc/whole-genome-or-exome-sequencing.html 10 Whole Genome or Exome Sequencing resources/chapt_screen_images/whole-genome-or-exome-sequencing.png
https://hutchdatascience.org/Choosing_Genomics_Tools/no_toc/rna-methods-overview.html 11 RNA Methods Overview resources/chapt_screen_images/rna-methods-overview.png
https://hutchdatascience.org/Choosing_Genomics_Tools/no_toc/bulk-rna-seq-1.html 12 Bulk RNA-seq resources/chapt_screen_images/bulk-rna-seq-1.png
https://hutchdatascience.org/Choosing_Genomics_Tools/no_toc/single-cell-rna-seq.html 13 Single-cell RNA-seq resources/chapt_screen_images/single-cell-rna-seq.png
https://hutchdatascience.org/Choosing_Genomics_Tools/no_toc/spatial-transcriptomics-1.html 14 Spatial transcriptomics resources/chapt_screen_images/spatial-transcriptomics-1.png
https://hutchdatascience.org/Choosing_Genomics_Tools/no_toc/chromatin-methods-overview.html 15 Chromatin Methods Overview resources/chapt_screen_images/chromatin-methods-overview.png
https://hutchdatascience.org/Choosing_Genomics_Tools/no_toc/atac-seq-1.html 16 ATAC-Seq resources/chapt_screen_images/atac-seq-1.png
https://hutchdatascience.org/Choosing_Genomics_Tools/no_toc/single-cell-atac-seq-1.html 17 Single cell ATAC-Seq resources/chapt_screen_images/single-cell-atac-seq-1.png
https://hutchdatascience.org/Choosing_Genomics_Tools/no_toc/chip-seq-1.html 18 ChIP-Seq resources/chapt_screen_images/chip-seq-1.png
https://hutchdatascience.org/Choosing_Genomics_Tools/no_toc/cutrun-and-cuttag.html 19 CUT&RUN and CUT&Tag resources/chapt_screen_images/cutrun-and-cuttag.png
https://hutchdatascience.org/Choosing_Genomics_Tools/no_toc/dna-methylation-sequencing.html 20 DNA Methylation Sequencing resources/chapt_screen_images/dna-methylation-sequencing.png
https://hutchdatascience.org/Choosing_Genomics_Tools/no_toc/microbiome-sequencing.html 21 Microbiome Sequencing resources/chapt_screen_images/microbiome-sequencing.png
https://hutchdatascience.org/Choosing_Genomics_Tools/no_toc/itcr--omic-tool-glossary.html 22 ITCR -omic Tool Glossary resources/chapt_screen_images/itcr--omic-tool-glossary.png
https://hutchdatascience.org/Choosing_Genomics_Tools/no_toc/about-the-authors.html About the Authors resources/chapt_screen_images/about-the-authors.png
https://hutchdatascience.org/Choosing_Genomics_Tools/no_toc/references.html References resources/chapt_screen_images/references.png
https://hutchdatascience.org/Choosing_Genomics_Tools/index.html About this Course resources/chapt_screen_images/index.png
https://hutchdatascience.org/Choosing_Genomics_Tools/introduction.html 1 Introduction resources/chapt_screen_images/introduction.png
https://hutchdatascience.org/Choosing_Genomics_Tools/a-very-general-genomics-overview.html 2 A Very General Genomics Overview resources/chapt_screen_images/a-very-general-genomics-overview.png
https://hutchdatascience.org/Choosing_Genomics_Tools/guidelines-for-good-metadata.html 3 Guidelines for Good Metadata resources/chapt_screen_images/guidelines-for-good-metadata.png
https://hutchdatascience.org/Choosing_Genomics_Tools/considerations-for-choosing-tools.html 4 Considerations for choosing tools resources/chapt_screen_images/considerations-for-choosing-tools.png
https://hutchdatascience.org/Choosing_Genomics_Tools/general-data-analysis-tools.html 5 General Data Analysis Tools resources/chapt_screen_images/general-data-analysis-tools.png
https://hutchdatascience.org/Choosing_Genomics_Tools/sequencing-data.html 6 Sequencing Data resources/chapt_screen_images/sequencing-data.png
https://hutchdatascience.org/Choosing_Genomics_Tools/microarray-data.html 7 Microarray Data resources/chapt_screen_images/microarray-data.png
https://hutchdatascience.org/Choosing_Genomics_Tools/annotating-genomes.html 8 Annotating Genomes resources/chapt_screen_images/annotating-genomes.png
https://hutchdatascience.org/Choosing_Genomics_Tools/dna-methods-overview.html 9 DNA Methods Overview resources/chapt_screen_images/dna-methods-overview.png
https://hutchdatascience.org/Choosing_Genomics_Tools/whole-genome-or-exome-sequencing.html 10 Whole Genome or Exome Sequencing resources/chapt_screen_images/whole-genome-or-exome-sequencing.png
https://hutchdatascience.org/Choosing_Genomics_Tools/rna-methods-overview.html 11 RNA Methods Overview resources/chapt_screen_images/rna-methods-overview.png
https://hutchdatascience.org/Choosing_Genomics_Tools/bulk-rna-seq-1.html 12 Bulk RNA-seq resources/chapt_screen_images/bulk-rna-seq-1.png
https://hutchdatascience.org/Choosing_Genomics_Tools/single-cell-rna-seq.html 13 Single-cell RNA-seq resources/chapt_screen_images/single-cell-rna-seq.png
https://hutchdatascience.org/Choosing_Genomics_Tools/spatial-transcriptomics-1.html 14 Spatial transcriptomics resources/chapt_screen_images/spatial-transcriptomics-1.png
https://hutchdatascience.org/Choosing_Genomics_Tools/chromatin-methods-overview.html 15 Chromatin Methods Overview resources/chapt_screen_images/chromatin-methods-overview.png
https://hutchdatascience.org/Choosing_Genomics_Tools/atac-seq-1.html 16 ATAC-Seq resources/chapt_screen_images/atac-seq-1.png
https://hutchdatascience.org/Choosing_Genomics_Tools/single-cell-atac-seq-1.html 17 Single cell ATAC-Seq resources/chapt_screen_images/single-cell-atac-seq-1.png
https://hutchdatascience.org/Choosing_Genomics_Tools/chip-seq-1.html 18 ChIP-Seq resources/chapt_screen_images/chip-seq-1.png
https://hutchdatascience.org/Choosing_Genomics_Tools/cutrun-and-cuttag.html 19 CUT&RUN and CUT&Tag resources/chapt_screen_images/cutrun-and-cuttag.png
https://hutchdatascience.org/Choosing_Genomics_Tools/dna-methylation-sequencing.html 20 DNA Methylation Sequencing resources/chapt_screen_images/dna-methylation-sequencing.png
https://hutchdatascience.org/Choosing_Genomics_Tools/microbiome-sequencing.html 21 Microbiome Sequencing resources/chapt_screen_images/microbiome-sequencing.png
https://hutchdatascience.org/Choosing_Genomics_Tools/itcr--omic-tool-glossary.html 22 ITCR -omic Tool Glossary resources/chapt_screen_images/itcr--omic-tool-glossary.png
https://hutchdatascience.org/Choosing_Genomics_Tools/about-the-authors.html About the Authors resources/chapt_screen_images/about-the-authors.png
https://hutchdatascience.org/Choosing_Genomics_Tools/references.html References resources/chapt_screen_images/references.png
Binary file modified resources/chapt_screen_images/chip-seq-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/chapt_screen_images/chromatin-methods-overview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/chapt_screen_images/cutrun-and-cuttag.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/chapt_screen_images/dna-methods-overview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/chapt_screen_images/dna-methylation-sequencing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/chapt_screen_images/general-data-analysis-tools.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/chapt_screen_images/guidelines-for-good-metadata.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/chapt_screen_images/index.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/chapt_screen_images/introduction.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/chapt_screen_images/itcr--omic-tool-glossary.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/chapt_screen_images/microarray-data.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/chapt_screen_images/microbiome-sequencing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/chapt_screen_images/references.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/chapt_screen_images/rna-methods-overview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/chapt_screen_images/sequencing-data.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/chapt_screen_images/single-cell-atac-seq-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/chapt_screen_images/single-cell-rna-seq.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/chapt_screen_images/spatial-transcriptomics-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6a360b1

Please sign in to comment.