Opening the zip file:
The zip file ‘SOAPdenovo2.zip’ expanded into two programs -
The second program runs in similar manner as the good old SOAPdenovo, whereas the first program is an additional module to run SOAPdenovo with less RAM. In the words of Dr. 谢寅龙,
Anyone who received the SOAPdenovo2 copy (attachment “SOAPdenovo2.zip”) please note that there is another program “pregraph_sparse_63mer.5.1″ inside it. The “pregraph_sparse_63mer.5.1″ is a new optional module in SOAPdenovo2 which would save ~60% memory consumption for the first step (pregraph). Also note that new algorithm is applied in this module and the contigs and scaffolds may not exactly the same as the original one. If you want to try it, please substitute this module for the “SOAPdenovo pregraph”. The usage is attached.
You may run it like this:
./SOAPdenovo-63mer contig [parameters]
./SOAPdenovo-63mer map [parameters]
./SOAPdenovo-63mer scaff [parameters]
Or set a relatively large number to have a try first, adjust it if the step failed. For reference, it’s suitable to set -z 5000000000 for human(3Gbp genome).
Preparing the config file:
Our input data consists of two Illumina libraries -
(i) a mate pair library with 300 million x 2 reads (99 nt)
(ii) a paired end library with 450 million x 2 reads
Here is our config file:
It is very simple. First line gives the maximum read length. Then information on two libraries are given. In a previous commentary, we explained inward and outward-looking reads. The parameter reverse_seq is 0 for inward looking reads (typically for paired end), and 1 for outward-looking reads (typically for mate pairs).
To explain the remaining parameters, we quote SOAPdenovo website:
Libraries with the same “rank” are used at the same time for scaffolding in the order indicated by “rank”.
There are two types of paired-end libraries: a) forward-reverse, generated from fragmented DNA ends with typical insert size less than 800 bp; b) reverse-forward, generated from circularizing libraries with typical insert size greater than 2 Kb. User should set parameter for tag “reverse_seq” to indicate this: 0, forward-reverse; 1, reverse-forward.
Running the program:
SOAPdenovo runs in four steps.
i) preparing the pregraph. This step is similar to velveth for velvet.
ii) Determining contigs. This step is similar to velvetg for velvet.
iii) Mapping back reads on to contigs.
iv) Assembling contigs into scaffolds.
All steps ran smoothly with SOAPdenovo2. Ideally, you can run ‘SOAPdenovo2 all [params]‘ and let SOAPdenovo2 run four steps one by one. We chose to run them individually to utilize sparse pregraph module.
Our commands -
./pregraph_sparse_63mer.5.1 -s config_file -K 45 -p 28 -z 1100000000 -o outPG
./SOAPdenovo-63mer-v2.04.3 contig -g outPG
./SOAPdenovo-63mer-v2.04.3 map -s config_file -g outPG -p 28
./SOAPdenovo-63mer-v2.04.3 scaff -g outPG -p 28
The complete run took about 4 or 5 hours, among which mapping back of reads onto contigs took the longest. We only checked RAM usage from time to time, and do not believe it exceeded 60-70G any time.
How good is the assembly? The genome size came out to be 560 Mbp. Longest scaffold is 886,512 nt long. Going back to our old statistics, N50 at contig stage is 1531 nt and at scaffold stage is 104,253 nt.