Skip to content

Commit 2daa587

Browse files
committed
update README
1 parent 8021032 commit 2daa587

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

README.Rmd

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ knitr::opts_chunk$set(echo = TRUE)
1010
## Installation
1111

1212
*Requires R >= 4.0*
13-
*Requires biostrings, need to install from biocmanager*
13+
*Requires Biostrings, need to install from BiocManager*
1414
```{r, eval=FALSE}
1515
BiocManager::install('Biostrings')
1616
remotes::install_github('jtrachsel/pdtools')
@@ -94,7 +94,7 @@ ftp_paths <-
9494
9595
# or within R:
9696
# set names to the desired path
97-
names(ftp_paths) <-paste0('./data/',meta_filt$asm_acc, '.fna')
97+
names(ftp_paths) <-paste0('./data/',meta_filt$asm_acc, '.fna.gz')
9898
9999
Map(function(u, d) download.file(u, d, mode="wb"), ftp_paths, names(ftp_paths))
100100
@@ -136,6 +136,8 @@ get_pangenome_representatives(pan_mat = pan_PA, SEED = 2, desired_coverage = .99
136136

137137

138138
## TODO
139+
- Stats on available organisms, num clusters, most recent isolate
140+
https://www.ncbi.nlm.nih.gov/pathogens/organisms/
139141
- update_collection() function?
140142
- Should take and old metadata file and a new metadata file as inputs.
141143
- return a vector of new genomes that were not present in the old list.

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ pdtools
33

44
## Installation
55

6-
*Requires R &gt;= 4.1* *Requires biostrings, need to install from
7-
biocmanager*
6+
*Requires R &gt;= 4.0* *Requires Biostrings, need to install from
7+
BiocManager*
88

99
``` r
1010
BiocManager::install('Biostrings')
@@ -23,11 +23,9 @@ Detection project](https://www.ncbi.nlm.nih.gov/pathogens/)
2323
#### List available organisms
2424

2525
``` r
26-
2726
library(pdtools)
2827

2928
list_organisms()
30-
3129
```
3230

3331
#### Download the most recent metadata for an organism:
@@ -37,7 +35,6 @@ system('mkdir data')
3735
download_most_recent_complete('Campylobacter', folder_prefix = './data/')
3836
```
3937

40-
4138
#### Join downloads: metadata and SNP clusters
4239

4340
``` r
@@ -89,7 +86,7 @@ ftp_paths <-
8986

9087
# or within R:
9188
# set names to the desired path
92-
names(ftp_paths) <-paste0('./data/',meta_filt$asm_acc, '.fna')
89+
names(ftp_paths) <-paste0('./data/',meta_filt$asm_acc, '.fna.gz')
9390

9491
Map(function(u, d) download.file(u, d, mode="wb"), ftp_paths, names(ftp_paths))
9592
```
@@ -125,6 +122,8 @@ get_pangenome_representatives(pan_mat = pan_PA, SEED = 2, desired_coverage = .99
125122

126123
## TODO
127124

125+
- Stats on available organisms, num clusters, most recent isolate
126+
<https://www.ncbi.nlm.nih.gov/pathogens/organisms/>
128127
- update\_collection() function?
129128
- Should take and old metadata file and a new metadata file as
130129
inputs.

0 commit comments

Comments
 (0)