|
1 |
| -# backmap |
2 |
| -Wrapper for short read mapping, creation of quality report and estimation of genome size |
| 1 | +# backmap.pl v0.1 |
| 2 | + |
| 3 | +## Description |
| 4 | +__Automatic short read mapping and genome size estimate from coverage.__ |
| 5 | + |
| 6 | +Automatic mapping of paired and unpaired reads to an assembly with `bwa mem`, execution of `qualimap bamqc` and estimation of genome size from mapped nucleotides divided by mode (>0). |
| 7 | +The tools `bwa` and `samtools` need to be in your `$PATH`. The tools `qualimap`, `bedtools` and `Rscript` are optional but needed to create the mapping quality report, coverage histogram and plot of the coverage distribution respectively. |
| 8 | + |
| 9 | +## Dependencies |
| 10 | + |
| 11 | +`backmap.pl` will search for the following executables in your `$PATH`: |
| 12 | + |
| 13 | +Mandatory: |
| 14 | +- [bwa (mem)](https://github.com/lh3/bwa): `bwa` |
| 15 | +- [samtools](https://github.com/samtools/samtools): `samtools` |
| 16 | + |
| 17 | +Optional: |
| 18 | +- [Qaulimap](http://qualimap.bioinfo.cipf.es/): `qualimap` |
| 19 | +- [bedtools](https://bedtools.readthedocs.io/en/latest/) `bedtools` |
| 20 | +- [Rscript](https://www.r-project.org/) `Rscript` |
| 21 | + |
| 22 | +## Usage |
| 23 | + |
| 24 | +``` |
| 25 | +backmap.pl [-a <assembly.fa> {-p <paired_1.fq>,<paired_2.fq> | -u <unpaired.fq>} | |
| 26 | + -b <mapping.bam>] |
| 27 | +
|
| 28 | +Mandatory: |
| 29 | + -a STR Assembly were reads should mapped to in fasta format |
| 30 | + -p STR Two files with paired reads comma sperated |
| 31 | + Can be specified multiple times |
| 32 | + -u STR One file with unpaired reads |
| 33 | + Can be specified multiple times |
| 34 | + OR |
| 35 | + -b STR Bam file to calculate coverage from |
| 36 | + Skips read mapping |
| 37 | + Overrides -nh and -ne |
| 38 | +
|
| 39 | +Options: [default] |
| 40 | + -o STR Output directory [.] |
| 41 | + Will be created if not existing |
| 42 | + -t INT Number of parallel executed processes [1] |
| 43 | + Affects bwa mem, samtools sort, qualimap bamqc |
| 44 | + -pre STR Prefix of output files [filename of -a or -b] |
| 45 | + -sort Sort the bam file (-b) [off] |
| 46 | + -nq Do not run qualimap bamqc [off] |
| 47 | + -nh Do not create coverage histogram [off] |
| 48 | + Implies -ne |
| 49 | + -ne Do not estimate genome size [off] |
| 50 | + -kt Keep temporary bam files [off] |
| 51 | + -bo STR Options passed to bwa [-a -c 10000] |
| 52 | + Pass options with -bo "<options>" |
| 53 | + -qo STR Options passed to qualimap [none] |
| 54 | + Pass options with -qo "<options>" |
| 55 | + -v Print executed commands to STDERR [off] |
| 56 | + -dry-run Only print commands to STDERR instead of executing [off] |
| 57 | +
|
| 58 | + -h or -help Print this help and exit |
| 59 | + -version Print version number and exit |
| 60 | +``` |
| 61 | + |
| 62 | +## Citation |
| 63 | +If you use this tool please cite the dependencies. |
0 commit comments