Skip to content

Commit f7a584b

Browse files
committed
Version 0.2
1 parent 3780e5f commit f7a584b

File tree

2 files changed

+452
-149
lines changed

2 files changed

+452
-149
lines changed

README.md

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,70 @@
1-
# backmap.pl v0.1
1+
# backmap.pl v0.2
22

33
## Description
4-
__Automatic short read mapping and genome size estimate from coverage.__
4+
__Automatic read mapping and genome size estimate from coverage.__
55

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.
6+
Automatic mapping of paired, unpaired, PacBio and Nanopore reads to an assembly with `bwa mem` or `minimap2`, execution of `qualimap bamqc` and estimation of genome size from mapped nucleotides divided by mode (>0).
7+
The tools `samtools`, `bwa` and/or `minimap2` need to be in your `$PATH`. The tools `qualimap`, `multiqc`, `bedtools` and `Rscript` are optional but needed to create the mapping quality report, coverage histogram and plot of the coverage distribution respectively.
88

99
## Dependencies
1010

1111
`backmap.pl` will search for the following executables in your `$PATH`:
1212

1313
Mandatory:
1414
- [Number::FormatEng](https://metacpan.org/pod/Number::FormatEng)
15+
- [samtools](https://github.com/samtools/samtools): `samtools`
16+
17+
Short read mapping:
1518
- [bwa (mem)](https://github.com/lh3/bwa): `bwa`
16-
- [samtools](https://github.com/samtools/samtools): `samtools`
19+
20+
Long read mapping:
21+
- [minimap2](https://github.com/lh3/minimap2): `minimap2`
1722

1823
Optional:
1924
- [Qaulimap](http://qualimap.bioinfo.cipf.es/): `qualimap`
25+
- [MultiQC](https://multiqc.info/): `multiqc`
2026
- [bedtools](https://bedtools.readthedocs.io/en/latest/) `bedtools`
2127
- [Rscript](https://www.r-project.org/) `Rscript`
2228

2329
## Usage
2430

2531
```
2632
backmap.pl [-a <assembly.fa> {-p <paired_1.fq>,<paired_2.fq> | -u <unpaired.fq>} |
27-
-b <mapping.bam>]
33+
-pb <pacbio.fq> | -ont <ont.fq> } | -b <mapping.bam>]
2834
2935
Mandatory:
3036
-a STR Assembly were reads should mapped to in fasta format
31-
-p STR Two files with paired reads comma sperated
32-
Can be specified multiple times
33-
-u STR One file with unpaired reads
34-
Can be specified multiple times
37+
AND AT LEAST ONE OF
38+
-p STR Two files with paired Illumina reads comma sperated
39+
-u STR Fastq file with unpaired Illumina reads
40+
-pb STR Fasta or fastq file with PacBio reads
41+
-ont STR Fasta or fastq file with Nanopore reads
3542
OR
3643
-b STR Bam file to calculate coverage from
3744
Skips read mapping
38-
Overrides -nh and -ne
45+
Overrides -nh
46+
Technologies will recognized correctly if filenames end with
47+
.pb(.sort).bam or .ont(.sort).bam for PacBio and Nanopore respectively.
48+
Otherwise they are assumed to be from Illumina.
49+
50+
All mandatory options except of -a can be specified multiple times
3951
4052
Options: [default]
4153
-o STR Output directory [.]
4254
Will be created if not existing
4355
-t INT Number of parallel executed processes [1]
4456
Affects bwa mem, samtools sort, qualimap bamqc
45-
-pre STR Prefix of output files [filename of -a or -b]
46-
-sort Sort the bam file (-b) [off]
57+
-pre STR Prefix of output files if -a is used [filename of -a]
58+
-sort Sort the bam file(s) (-b) [off]
4759
-nq Do not run qualimap bamqc [off]
4860
-nh Do not create coverage histogram [off]
4961
Implies -ne
5062
-ne Do not estimate genome size [off]
5163
-kt Keep temporary bam files [off]
5264
-bo STR Options passed to bwa [-a -c 10000]
53-
Pass options with -bo "<options>"
65+
-mo STR Options passed to minimap [PacBio: -H -x map-pb; ONT: -x map-ont]
5466
-qo STR Options passed to qualimap [none]
55-
Pass options with -qo "<options>"
67+
Pass options with quotes e.g. -bo "<options>"
5668
-v Print executed commands to STDERR [off]
5769
-dry-run Only print commands to STDERR instead of executing [off]
5870
@@ -61,4 +73,4 @@ Options: [default]
6173
```
6274

6375
## Citation
64-
If you use this tool please cite the dependencies.
76+
If you use this tool please cite the dependencies as well.

0 commit comments

Comments
 (0)