Skip to content

FreBio/NOVOPlasty

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOVOPlasty - The organelle assembler

NOVOPlasty is a de novo assembler and variance caller for short circular genomes.
For the moment NOVOPlasty only supports whole genome Illumina paired-end reads as input.

If you are interested in beta testing the new version with a heteroplasmy detector and variance caller, pleasme contact me

Last updates: 28/08/17 version 2.6.3

  • Improved Seed retrieval.
  • Indicates when the coverage is too low (it gave a seed error before).
  • Resolved some bugs and small improvements.
    05/07/17
  • New Reference option available, only been tested on references of the same genus (UPDATED CONFIG FILE!).
  • This reference option will be used to resolve duplicated regions or inverted repeats, the assembly will still be de novo
  • Improved plant mitochondria option, reduced assembly of chloroplast sequences in "mito_plant" mode
  • But you first have to assemble the chloroplast before the mitochondria in plants!
  • "mito_plant" mode will be further improved.
    28/04/17
  • A new option to save the assembled reads in seperate files (UPDATED CONFIG FILE!).
  • Seed errors related to incompatible reads ids solved (SRA data files were often incompatible).
    21/04/17
  • It is now possible to use bz2 zipped read files as input.
  • Long repeats (> 400 bp) won't make the assembly get stuck in a loop anymore.
  • Several read id's were added to the library.
    22/03/17
  • It is now possible to use zipped (only .gz extension) read files as input.
  • An extra option is added to the config file (Max memory). This makes you able to choose a maximum memory usage.
  • This max memory option is very handy if you want to subsample your dataset (leave it blank if no limit).

Cite

Dierckxsens N., Mardulyn P. and Smits G. (2016) NOVOPlasty: De novo assembly of organelle genomes from whole genome data. Nucleic Acids Research, doi: 10.1093/nar/gkw955

Getting help

Any issues/requests/problems/comments that are not yet addressed on this page can be posted on Github issues and I will try to reply the same day.

Or you can contact me directly through the following email address:

nicolasdierckxsens@hotmail.com

If your assembly was unsuccessful, you could already add the log file and the configuration file to the mail, this could help me to identify the problem!

Prerequisites

Perl

Instructions

1. Find a suitable seed

There are different types of seed possible:

  • A single read from the dataset that originates from the organelle plastid.
  • A organelle sequence derived from the same or a related species.
  • A complete organelle sequence of a more distant species (recommended when there is no close related sequence available)

The format should be like a standard fasta file (first line: >Id_sequence)

Be cautious for seed sequences that are similar in both mitochondrial and chloroplast genomes.
We observed good results with RUBP sequences as seeds for chloroplast assembly.

2. Create configuration file

You can download the example file (config.txt) and adjust the settings to your liking.
Every parameter of the configuration file is explained below.

3. Run NOVOPlasty

No further installation is necessary:

perl NOVOPlasty.pl -c config.txt

The input reads have to be uncompressed Illumina reads (fastq/fasta files) or gz zipped files.
Either two separate files(forward and reverse) or a merged fastq/fasta file.
Multiple libraries as input is not yet supported.

DO NOT filter or quality trim the reads!!! Use the raw whole genome dataset (Only adapters should be removed)!

You can subsample to speed up the process and to reduce the memory requirements. But it is recommended to use as much reads as possible, especially when the organelle genome contains AT-rich stretches.

You can always try different K-mer's. In the case of low coverage problems or seed errors, it's recommended to lower the K-mer (set between 25-39)!!!.

4. Output files

NOVOPlasty outputs four types of files:

1. Contigs_projectname.txt

This file contains the contigs of the assemblies.

2. Merged_contigs_projectname.txt

When there are multiple contigs, NOVOPlasty will try to combine all contigs in to a complete circular genome, all the different possibilities can be found in this file.

3. Option_nr_projectname.txt

All possible contig combinations will have a seperate fasta file.

4. contigs_tmp_projectname.txt

If non of the above files are outputted or are empty, you can retrieve some contigs from this file.

Interpretation and post-processing

1. General

*

A '*' in the fasta output files indicates that the nucleotide before is a possible deletion/insertion. This can occur when the exact length of single nucleotide repeat can't be determined exactly due to systemic Illumina sequencing errors or within repetitive regions. Since this sign can interfere with post processing algorithms it is best resolve them manually or to delete them.

Gaps

Most gaps are caused by Single Nucleotide Repeats (SNR). Illumina seqeuncers have a high rate of systemic errors after SNR's and are therefore hard to assemble. NOVOPlasty is cabale of assembling these regions as correct as possible by approaching these regions from both sides (sequencing errors commence once in the SNR). If this region is not too long, NOVOPlasty can automaticallly merge both sides, otherwise it will output a gap. Although this gap can often be closed automatically (if both sides overlap).
You can find an example (form the Avicennia officinalis chloroplast assembly) below how to do this manually:

These regions are indicated by 15 N's:

TTCTTGTCATTTCTCCCCCCCCCCCCCBTTTTTTTTTTHAAAAAAAAAAAANNNNNNNNNNNNNNNTTTTTTTCCTTTCCCCCCCCCCCCCCCTTTTTTTTTTCAAAAAAAAAAGAGACGAGAAACTC

Remove the N's and align both sides (Remember that the end of the first sequence and the start of the second sequence are not reliable):

TTCTTGTCATTTCTCCCCCCCCCCCCCBTTTTTTTTTTHAAAAAAAAAAAA
 TTTTTTTCCTTTCCCCCCCCCCCCCCCTTTTTTTTTTCAAAAAAAAAAGAGACGAGAAACTCTGAA

The most likable consensus sequence would be this, so you should correct the assembly like this:

TTCTTGTCATTTCTCCCCCCCCCCCCCCTTTTTTTTTTCAAAAAAAAAAGAGACGAGAAACTCTGAA

It is adviced to make these corrections before you verify the assembly by realigning the reads

2. Chloroplast assembly

Ideally you will have one or two outputted assemblies. When you have two assemblies from the same length, the only difference will be the orientation of the inverted repeat. This can be resolved manually by mapping the assemblies to the closest reference. (On NCBI's BLAST you can further examine your mapping by clicking on 'Graphics', this will show you which orientation is correct.) Otherwise you can first annotate the two assemblies and compare the gene order.

Configuration file

This is an example of a configuration file for the assembly of a chloroplast. To make the assembler work, your configuration file has to have the exact same structure. (Make sure there is always a space after the equals sign and every parameter is captured in one single line)

1. Example of configuration file:

Project name         = AOB_chloro
Insert size          = 300
Insert size aut      = yes
Read Length          = 101
Type                 = chloro
Genome Range         = 120000-200000
K-mer                = 39
Insert Range         = 1.6
Insert Range strict  = 1.2
Single/Paired        = PE
Max memory           =
Extended log         = 0
Save assembled reads = no
Combined reads       = /path/to/reads/AOB_reads.fastq
Forward reads        = 
Reverse reads        = 
Seed Input           = Seed_AOB.fasta
Reference            = /path/to/reference_file/reference.fasta (optional)
Chloroplast sequence = /path/to/chloroplast_file/chloroplast.fasta (only for "mito_plant" option)

2. Explanation parameters:

Project name         = Choose a name for your project, it will be used for the output files.
Insert size          = Total insert size of your paired end reads, it doesn't have to be accurate but should be close enough.
Insert size auto     = (yes/no) This will finetune your insert size automatically (Default: yes)
Read Length          = The read length of your reads.
Type                 = (chloro/mito/mito_plant) "chloro" for chloroplast assembly, "mito" for mitochondrial assembly and 
                       "mito_plant" for mitochondrial assembly in plants.
Genome Range         = (minimum genome size-maximum genome size) The expected genome size range of the genome.
                       Default value for mito: 12000-20000 / Default value for chloro: 120000-200000
                       If the expected size is know, you can lower the range, this can be useful when there is a repetitive
                       region, what could lead to a premature circularization of the genome.
K-mer                = (integer) This is the length of the overlap between matching reads (Default: 39). 
                       If reads are shorter then 90 bp or you have low coverage data, this value should be decreased down to 23. 
                       For reads longer then 101 bp, this value can be increased, but this is not necessary.
Insert Range         = This variation on the insert size, could lower it when the coverage is very high or raise it when the
                       coverage is too low (Default: 1.6). 
Insert Range strict  = Strict variation to resolve repetitive regions (Default: 1.2). 
Single/Paired        = For the moment only paired end reads are supported.
Max memory           = You can choose a max memory usage, suitable to automatically subsample the data or when you have limited                      
                       memory capacity. If you have sufficient memory, leave it blank, else write your available memory in GB
                       (if you have for example a 8 GB RAM laptop, put down 7 or 7.5 (don't add the unit in the config file)).
Extended log         = Prints out a very extensive log, could be useful to send me when there is a problem  (0/1).
Save assembled reads = All the reads used for the assembly will be stored in seperate files (yes/no).
Combined reads       = The path to the file that contains the combined reads (forward and reverse in 1 file).
Forward reads        = The path to the file that contains the forward reads (not necessary when there is a merged file).
Reverse reads        = The path to the file that contains the reverse reads (not necessary when there is a merged file).
Seed Input           = The path to the file that contains the seed sequence.
Reference (optional) = If a reference is available, you can give here the path to the fasta file.
                       The assembly will still be de novo, but references of the same genus can be used as a guide to resolve 
                       duplicated regions in the plant mitochondria or the inverted repeat in the chloroplast. 
                       References from different genus haven't beeen tested yet.
Chloroplast sequence = The path to the file that contains the chloroplast sequence (Only for mito_plant mode).
                       You have to assemble the chloroplast before you assemble the mitochondria of plants!

About

NOVOPlasty - The organelle assembler

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Perl 100.0%