You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
help: 'There is a template included in the documentation for inputs. Defining this parameter will automatically change "chip.aligner" to "custom". You should also define "chip.custom_aligner_idx_tar".'
640
642
}
641
643
use_bwa_mem_for_pe: {
642
-
description: 'For paired end dataset with read length >= 70bp, use bwa mem instead of bwa aln.',
644
+
description: 'For paired end dataset with read length >= chip.bwa_mem_read_len_limit (default 70) bp, use bwa mem instead of bwa aln.',
643
645
group: 'alignment',
644
-
help: 'Use it only for paired end reads >= 70bp.'
646
+
help: 'Use it only for paired end reads >= chip.bwa_mem_read_len_limit (default 70) bp. Otherwise keep using bwa aln.'
647
+
}
648
+
bwa_mem_read_len_limit: {
649
+
description: 'Read length limit for bwa mem (for PE FASTQs only).',
650
+
group: 'alignment',
651
+
help: 'If chip.use_bwa_mem_for_pe is activated and reads are shorter than this limit, then bwa aln will be used instead of bwa mem.'
652
+
}
653
+
use_bowtie2_local_mode: {
654
+
description: 'Use bowtie2\'s local mode (soft-clipping).',
655
+
group: 'alignment',
656
+
help: 'This will add --local to bowtie2 command line so that it will replace the default end-to-end mode.'
645
657
}
646
658
crop_length: {
647
659
description: 'Crop FASTQs\' reads longer than this length.',
@@ -1133,6 +1145,11 @@ workflow chip {
1133
1145
msg = 'To use chip.use_bwa_mem_for_pe, choose bwa for chip.aligner.'
1134
1146
}
1135
1147
}
1148
+
if ( aligner_ != 'bowtie2' && use_bowtie2_local_mode ) {
`chip.crop_length`| Int | 0 | Crop FASTQs with Trimmomatic (using parameters `CROP`). 0: cropping disabled.
154
154
`chip.crop_length_tol`| Int | 2 | Trimmomatic's `MINLEN` will be set as `chip.crop_length` - `abs(chip.crop_length_tol)` where reads shorter than `MINLEN` will be removed, hence not included in output BAM files and all downstream analyses.
155
155
`chip.trimmomatic_phred_score_format` | String | auto | Base encoding (format) for phred score in FASTQs. Choices: `auto`, `phred33` or `phred64` (without hyphen). This is used for Trimmomatic only. It is `auto` by default, which means that Trimmomatic automatically detect it from FASTQs. Otherwise `-phred33` or `-phred64` will be passed to the Trimmomatic command line. Use this parameter if you get an error `Error: Unable to detect quality encoding` in Trimmomatic.
156
-
`chip.use_bwa_mem_for_pe` | Boolean | false | For PE dataset, uise bwa mem instead of bwa aln.
156
+
`chip.use_bwa_mem_for_pe` | Boolean | false | For `chip.aligner` as `bwa` and PE datasets only, use `bwa mem` instead of `bwa aln`. If read length of R1 FASTQ is shorter than `chip.bwa_mem_read_len_limit` (70 by default) then `bwa aln` will be used instead.
157
+
`chip.bwa_mem_read_len_limit` | Int | 70 | For `chip.aligner` as `bwa` and PE dataset only, R1 FASTQ's read length limit for`bwa mem`.
158
+
`chip.use_bowtie2_local_mode`| Boolean |false| Use bowtie2's local mode (adding `--local` to bowtie2 command line). If not defined, the default mode (end-to-end) will be used.
157
159
`chip.custom_align_py` | File | | Python script for your custom aligner. See details about [how to use a custom aligner](#how-to-use-a-custom-aligner)
158
160
159
161
@@ -245,8 +247,8 @@ Base memory/disk is 4GB/20GB for most tasks.
245
247
Parameter|Default|Description
246
248
---------|-------|-----------
247
249
`chip.align_cpu` | 6 |
248
-
`chip.align_bowtie2_mem_factor` | 0.15 | Multiplied to size of FASTQs to determine required memory
249
-
`chip.align_bwa_mem_factor` | 0.30 | Multiplied to size of FASTQs to determine required memory
250
+
`chip.align_bowtie2_mem_factor` | 0.15 | Multiplied to size of FASTQs to determine required memory. 5.0 + bowtie2_index_file_size + sum(all_fastqs) GB.
251
+
`chip.align_bwa_mem_factor` | 1.0 | Multiplied to size of FASTQs to determine required memory. 5.0 + bwa_index_file_size + sum(all_fastqs) GB.
250
252
`chip.align_time_hr` | 48 | Walltime (HPCs only)
251
253
`chip.align_bowtie2_disk_factor` | 8.0 | Multiplied to size of FASTQs to determine required disk
252
254
`chip.align_bwa_disk_factor` | 8.0 | Multiplied to size of FASTQs to determine required disk
0 commit comments