Skip to content

Commit

Permalink
Update repository for Soni et al. v3 and publication
Browse files Browse the repository at this point in the history
-Update for version 3 of Soni et al.
-Source data moved to Nat Comm supplement
-Ignore aamut_fitness_all.csv, which should be obtained from Bloom & Neher
-Ignore Mac files
-Bug fix for assigning NSYN vs. SYN site categories in sc2_BloomDFE.slim
-Add JOINED and sw files (intermediate files of Soni-response.R)
-Update README
  • Loading branch information
singing-scientist committed Jan 22, 2024
1 parent 608ff9f commit e5f60ab
Show file tree
Hide file tree
Showing 14 changed files with 88,640 additions and 128,265 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
.Rhistory
.DS_Store
data/aamut_fitness_all.csv

data/~$codon_data_BloomDFE_100_JOINED.xlsx
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Response to Soni et al.
Scripts, analysis code, intermediate files, and source data for response to Soni et al. 2023.
Scripts, analysis code, input data, and intermediate files for response to Soni et al. 2024.

## <a name="citation"></a>Citation

When using this repository, please refer to and cite:

>Nelson CW, Poon LLM, Gu H. Reply to: Population genetic considerations regarding the interpretation of within-patient SARS-CoV-2 polymorphism data. *Nature Communications*, in review.
>Nelson CW, Poon LLM, Gu H. Reply to: Population genetic considerations regarding the interpretation of within-patient SARS-CoV-2 polymorphism data. *Nature Communications*, in press.
and this page:

>https://github.com/chasewnelson/Soni_response
>https://github.com/chasewnelson/Soni-response
## <a name="description"></a>Description

Expand Down Expand Up @@ -65,9 +65,9 @@ grep -E '^[0-9]' results/DFE/*.out > DFE_mutations.txt
grep -E '^p' results/DFE/*.out | sed -E 's/ A/\tA/g' | sed -E 's/A /A\t/g' | sed -E 's/ /,/g' > DFE_genomes.txt
```

All raw output, random seeds used, intermediate data files, and Figure source data are available in the `/data/` directory of this repository. The file `aamut_fitness_all.csv` should be obtained from [Bloom & Neher](https://academic.oup.com/ve/article/9/2/vead055/7265011) at the study [GitHub link](https://raw.githubusercontent.com/jbloomlab/SARS2-mut-fitness/main/results/aa_fitness/aamut_fitness_all.csv) (public_2023-10-01 dataset; accessed 2023/10/05).
All raw output, random seeds used, and intermediate data files are available in the `/data/` directory of this repository. The file `aamut_fitness_all.csv` should be obtained from [Bloom & Neher](https://academic.oup.com/ve/article/9/2/vead055/7265011) at the study [GitHub link](https://raw.githubusercontent.com/jbloomlab/SARS2-mut-fitness/main/results/aa_fitness/aamut_fitness_all.csv) (public_2023-10-01 dataset; accessed 2023/10/05). Figure source data are provided as a Source Data file in the publication supplementary material.

All subsequent wrangling and analysis were performed manually in the R scripts `Soni_response.R` and `Bloom_SC2_DFE.R`, R version 4.2.2 (2022-10-31) and RStudio 2023.06.0+421, or R version 4.3.1 (2023-06-16) and RStudio 2023.06.1+524. R scripts are meant to be run interactively, line-by-line in RStudio. Figures were produced in R and annotated in PowerPoint. The following R libraries were used: base, boot, data.table, datasets, dplyr, forcats, ggplot2, graphics, grDevices, lubridate, MASS, methods, purrr, RColorBrewer, readr, scales, stats, stringr, tibble, tidyr, tidyverse, utils, zoo.
All wrangling and analysis were performed manually in the R scripts `Soni-response.R` and `Bloom-SC2-DFE.R`, R version 4.2.2 (2022-10-31) and RStudio 2023.06.0+421, or R version 4.3.1 (2023-06-16) and RStudio 2023.06.1+524. R scripts are meant to be run interactively, line-by-line in RStudio. Figures were produced in R and annotated in PowerPoint. The following R libraries were used: base, boot, data.table, datasets, dplyr, forcats, ggplot2, graphics, grDevices, lubridate, MASS, methods, purrr, RColorBrewer, readr, scales, stats, stringr, tibble, tidyr, tidyverse, utils, zoo.

## <a name="contact"></a>Contact
If you have questions about this repository, please click on the <a target="_blank" href="https://github.com/chasewnelson/Soni_response/issues">Issues</a> tab at the top of this page and begin a new thread, so that others might benefit from the discussion.
If you have questions about this repository, please click on the <a target="_blank" href="https://github.com/chasewnelson/Soni-response/issues">Issues</a> tab at the top of this page and begin a new thread, so that others might benefit from the discussion.
135,455 changes: 68,632 additions & 66,823 deletions data/BloomDFE_mutations.txt

Large diffs are not rendered by default.

17 changes: 0 additions & 17 deletions data/Figure1b_source.txt

This file was deleted.

Loading

0 comments on commit e5f60ab

Please sign in to comment.