Skip to content

Commit

Permalink
Add additional script and update changelog for patch release
Browse files Browse the repository at this point in the history
  • Loading branch information
jfy133 committed Aug 30, 2022
1 parent a7abec1 commit fd91e08
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
Rplot001.pdf
playground/
.~lock*
AncientMetagenomeDir-*.zip
AncientMetagenomeDir-v*.zip
AncientMetagenomeDir_v*.zip
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project follows to [Calendar Versioning](https://calver.org/).

## v22.09.1: Pyu Ancient Cities
## v22.09.2: Pyu Ancient Cities

Correction: Correct release ZIP upload

Expand Down
12 changes: 7 additions & 5 deletions assets/utility/release_stats_statement_generator.R
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
library(tidyverse)

previous_tag <- "v21.06"
previous_tag <- "v21.09"
release_tag <- "master"
new_release <- "v21.09"
new_release <- "v22.09"

previous_env <- read_tsv(paste0("https://github.com/SPAAM-community/AncientMetagenomeDir/raw/", previous_tag, "/ancientmetagenome-environmental/ancientmetagenome-environmental.tsv"))
previous_microb <- read_tsv(paste0("https://github.com/SPAAM-community/AncientMetagenomeDir/raw/", previous_tag, "/ancientmetagenome-hostassociated/ancientmetagenome-hostassociated.tsv"))
previous_single <- read_tsv(paste0("https://github.com/SPAAM-community/AncientMetagenomeDir/raw/", previous_tag, "/ancientsinglegenome-hostassociated/ancientsinglegenome-hostassociated.tsv"))
previous_pubs <- c(previous_env$publication_doi, previous_microb$publication_doi, previous_single$publication_doi) %>% unique() %>% length

new_env <- read_tsv(paste0("https://github.com/SPAAM-community/AncientMetagenomeDir/raw/", release_tag, "/ancientmetagenome-environmental/ancientmetagenome-environmental.tsv"))
new_microb <- read_tsv(paste0("https://github.com/SPAAM-community/AncientMetagenomeDir/raw/", release_tag, "/ancientmetagenome-hostassociated/ancientmetagenome-hostassociated.tsv"))
new_single <- read_tsv(paste0("https://github.com/SPAAM-community/AncientMetagenomeDir/raw/", release_tag, "/ancientsinglegenome-hostassociated/ancientsinglegenome-hostassociated.tsv"))
new_env <- read_tsv(paste0("https://github.com/SPAAM-community/AncientMetagenomeDir/raw/", release_tag, "/ancientmetagenome-environmental/samples/ancientmetagenome-environmental_samples.tsv"))
new_microb <- read_tsv(paste0("https://github.com/SPAAM-community/AncientMetagenomeDir/raw/", release_tag, "/ancientmetagenome-hostassociated/samples/ancientmetagenome-hostassociated_samples.tsv"))
new_single <- read_tsv(paste0("https://github.com/SPAAM-community/AncientMetagenomeDir/raw/", release_tag, "/ancientsinglegenome-hostassociated/samples/ancientsinglegenome-hostassociated_samples.tsv"))
new_pubs <- c(new_env$publication_doi, new_microb$publication_doi, new_single$publication_doi) %>% unique() %>% length

adds_pubs <- new_pubs - previous_pubs
Expand All @@ -24,6 +24,8 @@ tot_env <- nrow(new_env)
tot_microb <- nrow(new_microb)
tot_single <- nrow(new_single)

## TODO TO EXTEND TO INCLUDE LIBRARY

paste0("Release ", new_release,
" includes ", adds_pubs, " new publications, representing ",
adds_microb, " new ancient host-associated metagenome samples, ",
Expand Down

0 comments on commit fd91e08

Please sign in to comment.