Skip to content

Wrapper for overlap assembly of long reads and polishing

License

Notifications You must be signed in to change notification settings

schellt/wtdbg2-racon-pilon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

wtdbg2-racon-pilon.pl v0.4

Description

Automatic execution of (wtdbg2,) Racon and Pilon.

Longread assembly will be executed with wtdbg2 if no assembly file is specified.
Iterative correction with long reads by mapping them to the assembly with minimap2 and polishing with Racon.
Iterative correction with short reads by mapping them with bwa mem, (merging and) sorting of bam files with samtools and polishing with Pilon.

Dependencies

wtdbg2-racon-pilon.pl needs the following perl modules and will search for executables in your $PATH:

Perl modules

Assembly

Long read polishing

Short read polishing

Usage

wtdbg2-racon-pilon.pl [-l <longreads.fq> -x <longread tech>] [-a <assembly.fa>]
                      [-p <paired_1.fq>,<paired_2.fq> -u <unpaired.fq>]

Mandatory (if -a is not set):
	-l STR			File containing long reads in fastq format
	-x STR			Long read sequencing technology for wtdbg2 presets
				Valid arguments are: rsII, rs, sequel, sq, nanopore, ont,
				corrected, ccs
Mandatory (if -l and -x is not set):
	-a STR			File containing an assembly that should be polished in fasta format

Input/pipeline options: [default]
	-racon-rounds INT	Number of racon iterations [3]
	-pilon-rounds INT	Number of pilon iterations [3]
	-pilon-path STR		Complete path to the pilon jar file
	-pr STR			File in bed format to restrict pilon polishing to certain regions
				[polish all positions]
	-p STR			Two files with paired short reads in fastq format comma sperated
				Can be specified multiple times
	-u STR			One file with unpaired short reads in fastq format
				Can be specified multiple times
	-xmx STR/INT		Maximum java heap size for pilon [current available]
	-t INT			Number of parallel executed processes [1]
				Affects wtdbg2, wtpoa-cns, minimap2, racon, bwa mem, samtools sort
				and pilon.
	Pass specific options to tools with:
	-wtdbg-opts [], -wtpoa-opts [], -minimap-opts [], -racon-opts [-u], -bwa-opts [-a -c 10000],
	-pilon-opts [--diploid]
	For example like -wtdbg-opts '-g 100m'

Output options: [default]
	-o STR			Output directory [.]
				Will be created if not existing
	-pre STR		Prefix of output files [{w|<-a>.}r<-racon-rounds>p<-pilon-rounds>]
	-v			Print executed commands to STDERR [off]
	-dry-run		Only print commands to STDERR instead of executing [off]

	-h or -help		Print this help and exit
	-version		Print version number and exit

Citation

If you use this tool please cite the dependencies as well:

About

Wrapper for overlap assembly of long reads and polishing

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages