We generated a couple of shell scripts that allow automatizing some workflows with PoPoolationTE2.
This is an advanced topic, so it would help if you have read the manual before and completed the [Walkthrough].
The driver scripts are provided as shell scripts.
Before the driver scripts can be used it is necessary to edit them and fill in the common options.
The user needs to provide the absolute path to the bwa, samtools, PoPoolationTE2 (the jar), the TE-merged-reference and the TE-hierarchy. Editing can be done with any text editor (eg TextWrangler, vi, emacs).
At the beginning of each driver script you will find the following section. Please fill in with the correct values:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | #!/bin/zsh ####################################################################### ################# CONFIGURATION OF SHELL SCRIPT ###################### ################# PLEASE EDIT THE FOLLOWING ###################### # Note path to samtools and bwa have to be provided; This makes the analysis # more reproducible # path to samtools samtools="/Volumes/Temp/Robert/programs/samtools-1.2/samtools" # path to bwa bwa="/Volumes/Temp/Robert/programs/bwa-0.7.4/bwa" # threads for bwa threads=8 # path to the PoPoolationTE2.jar; replace the example with the correct value popte2="/Volumes/Temp/Robert/programs/popte2/popte2.jar" # path to the TE-merged-reference; replace the example with the corret value refg="/Volumes/Temp2/Robert/pop2simulations/refg/chasis1M/chasis1Mtes.fasta" # path to the TE-hierarchy; replace the example with the correct value hier="/Volumes/Temp2/Robert/pop2simulations/resources/tehier-ml100noS4.fasta" ##################### END OF CONFIGURATION PART ###################### ##################### DO NOT EDIT FROM HERE ON ####################### ###################################################################### |
Driver script for automating mapping. Download here https://sourceforge.net/projects/popoolation-te2/files/driver-scripts/run-map.sh/download
First update the configuration (see above) and than run the script like in the following example:
zsh run-map.sh input_1.fastq.gz input_2.fastq.gz outputdir
Driver script for automated TE identification with PoPoolationTE2 using default parameters; Download script here https://sourceforge.net/projects/popoolation-te2/files/driver-scripts/run-popte2.sh/download
First update the configuration (see above) and than run the script like in the following example:
zsh run-popte2.sh input.sort.bam outputdir 2
Driver script for automated mapping of reads and TE identification with PoPoolationTE2 using default parameters; Download the script here https://sourceforge.net/projects/popoolation-te2/files/driver-scripts/run-map-popte2.sh/download
First update the configuration (see above) and than run the script like in the following example:
zsh run-map-popte2.sh input_1.fastq.gz input_2.fastq.gz outputdir 2
Driver script for automated mapping of reads, subsampling of ppileup files and TE identification with PoPoolationTE2 using default parameters. Download the script here https://sourceforge.net/projects/popoolation-te2/files/driver-scripts/run-map-subs-popte2.sh/download
First update the configuration (see above) and than run the script like in the following example:
zsh run-map-subs-popte2.sh input_1.fastq.gz input_2.fastq.gz outputdir 2 50