Testing PARTIE

April 10, 2017 ยท View on GitHub

Now that you have installed PARTIE you should run some tests on it.

Here are some examples for you to work with.

Run partie with fasta or fastq files

perl partie.pl tests/16STest.fq 
perl partie.pl tests/16STest.fna 
perl partie.pl tests/phagesTest.fna 
perl partie.pl tests/phagesTest.fq  
perl partie.pl tests/prokaryote.fna 
perl partie.pl tests/prokaryote.fq

Run partie with an SRA ID

perl partie.pl ERR696648.sra
perl partie.pl ERR162903.sra

Run all the tests simultaneously

You can run all the tests and create a single output file. Notice that the noheader flag suppresses the output of the column labels. If you redirect this output to a file, you should get the same results as in tests/Example_partie_output.txt

perl partie.pl tests/16STest.fq
perl partie.pl -noheader tests/16STest.fna
perl partie.pl -noheader tests/phagesTest.fna
perl partie.pl -noheader tests/phagesTest.fq 
perl partie.pl -noheader tests/prokaryote.fna
perl partie.pl -noheader tests/prokaryote.fq
perl partie.pl -noheader ERR696648.sra
perl partie.pl -noheader ERR162903.sra
perl partie.pl -noheader SRR3939281.sra

Results

These are the numbers you should get out of partie for these examples.

sample_namepercent_unique_kmerpercent_16Spercent_phagepercent_Prokaryote
16STest.fq14.391000100
16STest.fna14.391000100
phagesTest.fna99.98010050
phagesTest.fq99.98010050
prokaryote.fna10000100
prokaryote.fq10000100
ERR696648.sra71.720.030.013.49
ERR162903.sra33.6413.920.525.5
SRR3939281.sra88.880.330.891.39

Classification

To use the classifier, you can run the Rscript:

Rscript RandomForest/PARTIE_Classification.R tests/Example_partie_output.txt

This will generate the following output:

Datapercent unique kmerpercent 16Spercent phagepercent ProkaryotePARTIE Annotation
16STest.fq14.391000100AMPLICON
16STest.fna14.391000100AMPLICON
phagesTest.fna99.98010050OTHER
phagesTest.fq99.98010050OTHER
prokaryote.fna10000100WGS
prokaryote.fq10000100WGS
ERR696648.sra71.720.030.013.49WGS
ERR162903.sra*33.6413.920.525.5AMPLICON
SRR3939281.sra88.880.330.891.39WGS

Note the additional column that includes the PARTIE classification.

*Example in which both WGS and amplicon sequencing is used. In this case the authors used viral metagenomics and 16S rRNA amplicon sequencing. We recommend examining the four calculated parameters as no partition approach will correctly classify this library.