March 15, 2017 • Patrick D. Schloss •
5 min read
•
The good people at the RDP have released a new version of the RDP database. A little bit of tweaking is needed to get their files to be compatible with mothur. This README document describes the process that I used to generate the mothur-compatible reference files. The original files are available from the RDPs sourceforge server and were used as the starting point for this README.
RDP Release 11.5 consists of 3,356,809 aligned and annotated 16S rRNA sequences and 125,525 Fungal 28S rRNA sequences. The Bacteria and Archaea hierarchy model used by RDP Classifier and RDP Hierarchy Browser have been updated to training set No. 16. This new training set has over 300 new genera and 2000 new sequences added. There are some rearrangements in genera Gp1, Gp3 and Gp4 of the Acidobacteria due to addition of recently proposed new genera.
Let’s get going…
Now we’d like to start to form the taxonomy file and the fasta file that will be our reference. Again, using bash commands…
Next, we’d like to get our taxonomy file properly formatted. First we’ll read in the taxonomy data. The following steps are done in R…
The RDP inserts a variety of sub taxonomic levels (e.g. suborder) that will get in the way of us having a consistent number of taxonomic levels for our analyses. Let’s use the data in trainset16_db_taxid.txt to remove these extra taxonomic levels:
Finally, we can output the taxonomy data to a file we’ll call trainset16_022016.rdp.tax to have a consistent naming scheme with previous versions of those files:
The RDP training sets do not include mitochondria or sequences from eukaryotes. We find that it is helpful to have these sequences because we can get non-specific amplification at times and would like to be able to remove these lineages. Let’s go ahead and pull down the pds version of training set v.9 and copy those sequences over to our new training set. The following steps will be done in bash:
Now let’s run a mothur command to pull out the extra sequences that are in the pds files:
This last command gets us the extra “pds” sequences that we can now use to paste on to the end of the normal RDP training set
While we’ve got the old version of the training set, it might be nice to see what the differences are. It would have been nice for them to provide a README indicating what changed, but, well, no, they didn’t.
Now we’re ready to compress the taxonomy files. First we do the RDP files…