Skip to content

Commit

Permalink
Update modules, fix parameter schema defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
jfy133 committed Feb 1, 2024
1 parent 81fad9c commit f96f863
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 26 deletions.
6 changes: 3 additions & 3 deletions modules.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
},
"angsd/contamination": {
"branch": "master",
"git_sha": "911696ea0b62df80e900ef244d7867d177971f73",
"git_sha": "3c77ca9aac783e76c3614a06db3bfe4fef619bde",
"installed_by": ["bam_docounts_contamination_angsd"]
},
"angsd/docounts": {
"branch": "master",
"git_sha": "bd9e43646a9435d2f62ce4a777ae88ef10ec922d",
"git_sha": "3f5420aa22e00bd030a2556dfdffc9e164ec0ec5",
"installed_by": ["bam_docounts_contamination_angsd"]
},
"bamutil/trimbam": {
Expand Down Expand Up @@ -221,7 +221,7 @@
"nf-core": {
"bam_docounts_contamination_angsd": {
"branch": "master",
"git_sha": "a9784afdd5dcda23b84e64db75dc591065d64653",
"git_sha": "cfd937a668919d948f6fcbf4218e79de50c2f36f",
"installed_by": ["subworkflows"]
},
"bam_split_by_region": {
Expand Down
7 changes: 7 additions & 0 deletions modules/nf-core/angsd/contamination/environment.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions modules/nf-core/angsd/contamination/main.nf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions modules/nf-core/angsd/contamination/meta.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions modules/nf-core/angsd/docounts/environment.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion modules/nf-core/angsd/docounts/main.nf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions modules/nf-core/angsd/docounts/meta.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ params {
contamination_estimation_angsd_range_to = 154900000
contamination_estimation_angsd_mapq = 30
contamination_estimation_angsd_minq = 30
contamination_estimation_angsd_hapmap = "${baseDir}/assets/angsd_resources/HapMapChrX.gz"
contamination_estimation_angsd_hapmap = "${projectDir}/assets/angsd_resources/HapMapChrX.gz"

// MtNucRatio
run_mtnucratio = false
Expand Down Expand Up @@ -215,9 +215,9 @@ try {
// Load nf-core/eager custom profiles from different institutions.
// Warning: Uncomment only if a pipeline-specific institutional config already exists on nf-core/configs!
try {
includeConfig "${params.custom_config_base}/pipeline/eager.config"
includeConfig "${params.custom_config_base}/pipeline/eager.config"
} catch (Exception e) {
System.err.println("WARNING: Could not load nf-core/config/eager profiles: ${params.custom_config_base}/pipeline/eager.config")
System.err.println("WARNING: Could not load nf-core/config/eager profiles: ${params.custom_config_base}/pipeline/eager.config")
}

// Additional configs for subworkflows
Expand Down
12 changes: 3 additions & 9 deletions nextflow_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,21 +60,18 @@
},
"fasta_fai": {
"type": "string",
"default": "None",
"description": "Path to samtools FASTA index (typically ending in '.fai'). If not supplied will be made for you.",
"help_text": "If you want to use a pre-existing `samtools faidx` index, use this to specify the required FASTA index file for the selected reference genome. This should be generated by samtools faidx and has a file suffix of `.fai`.",
"fa_icon": "fas fa-address-book"
},
"fasta_dict": {
"type": "string",
"default": "None",
"description": "Path to picard sequence dictionary file (typically ending in '.dict'). If not supplied will be made for you.",
"help_text": "If you want to use a pre-existing `picard CreateSequenceDictionary` dictionary file, use this to specify the required `.dict` file for the selected reference genome.",
"fa_icon": "fas fa-address-book"
},
"fasta_mapperindexdir": {
"type": "string",
"default": "None",
"description": "Path to directory containing index files of the FASTA for a given mapper.",
"help_text": "For most people this will likely be the same directory that contains the file you provided to `--fasta`.\n\nIf you want to use pre-existing `bwa index` indices, the directory should contain files ending in '.amb' '.ann' '.bwt'. If you want to use pre-existing `bowtie2 build` indices, the directory should contain files ending in'.1.bt2', '.2.bt2', '.rev.1.bt2'. \n\nIn any case do not include the files themselves in the path. nf-core/eager will automagically detect the index files by searching for the FASTA filename with the corresponding `bwa index`/`bowtie2 build` file suffixes. If not supplied, the indices will be generated for you.\n\n"
},
Expand All @@ -95,7 +92,7 @@
"type": "string",
"format": "directory-path",
"description": "Directory / URL base for iGenomes references.",
"default": "s3://ngi-igenomes/igenomes",
"default": "s3://ngi-igenomes/igenomes/",
"fa_icon": "fas fa-cloud-download-alt",
"hidden": true
},
Expand Down Expand Up @@ -356,21 +353,18 @@
},
"preprocessing_adapter1": {
"type": "string",
"default": "None",
"description": "Specify the nucleotide sequence for the forward read/R1.",
"fa_icon": "fas fa-grip-lines",
"help_text": "Specify a nucleotide sequence for the forward read/R1.\n\nIf not modified by the user, the default for the particular preprocessing tool will be used. Therefore, to turn off adapter trimming use `--preprocessing_skipadaptertrim`.\n\n> Modifies AdapterRemoval parameter: `--adapter1`\n> Modifies fastp parameter: `--adapter_sequence`"
},
"preprocessing_adapter2": {
"type": "string",
"default": "None",
"description": "Specify the nucleotide sequence for the forward read/R2.",
"fa_icon": "fas fa-grip-lines",
"help_text": "Specify a nucleotide sequence for the forward read/R2.\n\nIf not modified by the user, the default for the particular preprocessing tool will be used. To turn off adapter trimming use `--preprocessing_skipadaptertrim`.\n\n> Modifies AdapterRemoval parameter: `--adapter2`\n> Modifies fastp parameter: `--adapter_sequence_r2`"
},
"preprocessing_adapterlist": {
"type": "string",
"default": "None",
"description": "Specify a list of all possible adapters to trim. Overrides --preprocessing_adapter1/2. Formats: .txt (AdapterRemoval) or .fasta. (fastp).",
"help_text": "Allows to supply a file with a list of adapter (combinations) to remove from all files. \n\nOverrides the `--preprocessing_adapter1`/`--preprocessing_adapter2` parameters . \n\nNote that the two tools have slightly different behaviours.\n\nFor AdapterRemoval this consists of a two column table with a `.txt` extension: first column represents forward strand, second column for reverse strand. You must supply all possibly combinations, one per line, and this list is applied to all files. Only Adapters in this list will be screened for and removed. See AdapterRemoval documentation for more information.\n\nFor fastp this consists of a standard FASTA format with a `.fasta`/`.fa`/`.fna`/`.fas` extension. The adapter sequence in this file should be at least 6bp long, otherwise it will be skipped. fastp first will perform auto-detection of reads and will be removed , and then _additionally_ adapters present in the FASTA file one by one will be removed.\n\n> Modifies AdapterRemoval parameter: `--adapter-list`\n> Modifies fastp parameter: `--adapter_fasta`",
"fa_icon": "fas fa-list"
Expand Down Expand Up @@ -478,7 +472,7 @@
},
"mapping_tool": {
"type": "string",
"default": "bowtie2",
"default": "bwaaln",
"enum": ["bwaaln", "bwamem", "bowtie2", "circularmapper"],
"description": "Specify which mapper to use.",
"help_text": "Specify which mapping tool to use. Options are BWA aln ('`bwaaln`'), BWA mem ('`bwamem`'), circularmapper ('`circularmapper`'), or bowtie2 ('`bowtie2`'). BWA aln is the default and highly suited for short-read ancient DNA. BWA mem can be quite useful for modern DNA, but is rarely used in projects for ancient DNA. CircularMapper enhances the mapping procedure to circular references, using the BWA algorithm but utilizing a extend-remap procedure (see Peltzer et al 2016, Genome Biology for details). Bowtie2 is similar to BWA aln, and has recently been suggested to provide slightly better results under certain conditions ([Poullet and Orlando 2020](https://doi.org/10.3389/fevo.2020.00105)), as well as providing extra functionality (such as FASTQ trimming).\n\nMore documentation can be seen for each tool under:\n\n- [BWA aln](http://bio-bwa.sourceforge.net/bwa.shtml#3)\n- [BWA mem](http://bio-bwa.sourceforge.net/bwa.shtml#3)\n- [CircularMapper](https://circularmapper.readthedocs.io/en/latest/contents/userguide.html)\n- [Bowtie2](http://bowtie-bio.sourceforge.net/bowtie2/manual.shtml#command-line)",
Expand Down Expand Up @@ -1108,7 +1102,7 @@
},
"contamination_estimation_angsd_hapmap": {
"type": "string",
"default": "${baseDir}/assets/angsd_resources/HapMapChrX.gz",
"default": "${projectDir}/assets/angsd_resources/HapMapChrX.gz",
"description": "Path to HapMap file of chromosome for contamination estimation..",
"help_text": "The haplotype map, or \"HapMap\", records the location of haplotype blocks and their tag SNPs.",
"fa_icon": "fas fa-map"
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f96f863

Please sign in to comment.