33
44## Installation  
55
6- * Requires R > ; = 4.1 *  * Requires biostrings , need to install from
7- biocmanager * 
6+ * Requires R > ; = 4.0 *  * Requires Biostrings , need to install from
7+ BiocManager * 
88
99```  r 
1010BiocManager :: install(' Biostrings' 
@@ -23,11 +23,9 @@ Detection project](https://www.ncbi.nlm.nih.gov/pathogens/)
2323#### List available organisms  
2424
2525```  r 
26- 
2726library(pdtools )
2827
2928list_organisms()
30- 
3129``` 
3230
3331#### Download the most recent metadata for an organism:  
@@ -37,7 +35,6 @@ system('mkdir data')
3735download_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
9491Map(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