Skip to content

Commit fbcbba2

Browse files
authored
add bwa-mem2 help
1 parent 02065fc commit fbcbba2

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

README.md

+12-5
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Nextflow pipeline to perform BAM realignment or fastq alignment and QC, with/wit
1717
1. Nextflow : for common installation procedures see the [IARC-nf](https://github.com/IARCbioinfo/IARC-nf) repository.
1818

1919
### Basic fastq alignment
20-
2. [*bwa*](https://github.com/lh3/bwa)
20+
2. [*bwa2*](https://github.com/bwa-mem2/bwa-mem2) (default) or [*bwa*](https://github.com/lh3/bwa)
2121
3. [*samblaster*](https://github.com/GregoryFaust/samblaster)
2222
4. [*sambamba*](https://github.com/lomereiter/sambamba)
2323

@@ -75,6 +75,7 @@ Nextflow pipeline to perform BAM realignment or fastq alignment and QC, with/wit
7575
|--feature_file | null | Path to feature file for qualimap |
7676
|--multiqc_config | null | config yaml file for multiqc |
7777
|--adapterremoval_opt | null | Command line options for AdapterRemoval |
78+
|--bwa_mem | bwa-mem2 mem | bwa-mem command; use "bwa mem" to switch to regular bwa-mem (both are in the docker and singularity containers) |
7879

7980
* #### Flags
8081

@@ -89,20 +90,26 @@ Flags are special parameters without value.
8990
|--bwa_option_M | Trigger the -M option in bwa and the corresponding compatibility option in samblaster (marks shorter split hits as secondary) |
9091

9192
## Usage
92-
93-
9493
To run the pipeline on a series of fastq or BAM files in folder *input* and a fasta reference file hg19.fasta, one can type:
9594

9695
```bash
97-
nextflow run iarcbioinfo/alignment-nf -r v1.1 -profile singularity --input_folder input/ --ref hg19.fasta --output_folder output
96+
nextflow run iarcbioinfo/alignment-nf -r v1.2 -profile singularity --input_folder input/ --ref hg19.fasta --output_folder output
9897
```
9998

10099
To run the pipeline without singularity just remove "-profile singularity". Alternatively, one can run the pipeline using a docker container (-profile docker) the conda receipe containing all required dependencies (-profile conda).
101100

101+
102+
### Use bwa-mem instead of bwa-mem2
103+
To use bwa-mem, one can type:
104+
105+
```bash
106+
nextflow run iarcbioinfo/alignment-nf -r v1.2 -profile singularity --input_folder input/ --ref hg19.fasta --output_folder output --bwa_mem "bwa mem"
107+
```
108+
102109
### Enable adapter trimming
103110
To use the adapter trimming step, you must add the ***--trim* option**, as well as satisfy the requirements above mentionned. For example:
104111
```bash
105-
nextflow run iarcbioinfo/alignment-nf -r v1.1 -profile singularity --input_folder input/ --ref hg19.fasta --output_folder output --trim
112+
nextflow run iarcbioinfo/alignment-nf -r v1.2 -profile singularity --input_folder input/ --ref hg19.fasta --output_folder output --trim
106113
```
107114

108115
### Enable ALT mode

0 commit comments

Comments
 (0)