Skip to content

Commit fa097e5

Browse files
authored
Merge pull request #166 from Joon-Klaps/refactor-arguments
Refactor module arguments to pipeline arguments
2 parents e266165 + 2d5ab0a commit fa097e5

18 files changed

+1774
-1499
lines changed

CHANGELOG.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,15 @@ Initial release of Joon-Klaps/viralgenie, created with the [nf-core](https://nf-
2828
- Include samtools stats pre dedup & post dedup in overview tables ([#163](https://github.com/Joon-Klaps/viralgenie/pull/163))
2929
- adding prokka for gene detection & annotation ([#165](https://github.com/Joon-Klaps/viralgenie/pull/165))
3030

31+
3132
### `Fixed`
3233

33-
- OOM with longer contigs for lowcov_to_reference, uses more RAM now ([#125](https://github.com/Joon-Klaps/viralgenie/pull/125))
34+
- OOM with longer contigs for nocov_to_reference, uses more RAM now ([#125](https://github.com/Joon-Klaps/viralgenie/pull/125))
3435
- fixing null output from global prefix ([#147](https://github.com/Joon-Klaps/viralgenie/pull/147))
3536
- Fix empty filtered clusters ([#148](https://github.com/Joon-Klaps/viralgenie/pull/148))
3637
- Fixing missing columns from general stats & add general stats sample filtering ([#149](https://github.com/Joon-Klaps/viralgenie/pull/149))
3738
- process.shell template fix ([#157](https://github.com/Joon-Klaps/viralgenie/pull/157)) - see also [nf-core/tools #3416](https://github.com/nf-core/tools/pull/3416)
3839

3940
### `Parameters`
40-
- New parameter mmseqs_cluster_mode default to 0 ([#130](https://github.com/Joon-Klaps/viralgenie/pull/130))
41+
- New parameter mmseqs_cluster_mode default to 0 ([#130](https://github.com/Joon-Klaps/viralgenie/pull/130)) __DEPRECATED__
42+
- Refactor module arguments to pipeline arguments ([#166](https://github.com/Joon-Klaps/viralgenie/pull/166))

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
- [`Mash`](https://github.com/marbl/Mash)
5959
10. [Optional] Remove clusters with low read coverage. `bin/extract_clusters.py`
6060
11. Scaffolding of contigs to centroid ([`Minimap2`](https://github.com/lh3/minimap2), [`iVar-consensus`](https://andersen-lab.github.io/ivar/html/manualpage.html))
61-
12. [Optional] Annotate 0-depth regions with external reference `bin/lowcov_to_reference.py`.
61+
12. [Optional] Annotate 0-depth regions with external reference `bin/nocov_to_reference.py`.
6262
13. [Optional] Select best reference from `--mapping_constraints`:
6363
- [`Mash sketch`](https://github.com/marbl/Mash)
6464
- [`Mash screen`](https://github.com/marbl/Mash)
@@ -67,7 +67,7 @@
6767
16. Variant calling and filtering ([`BCFTools`](http://samtools.github.io/bcftools/bcftools.html),[`iVar`](https://andersen-lab.github.io/ivar/html/manualpage.html))
6868
17. Create consensus genome ([`BCFTools`](http://samtools.github.io/bcftools/bcftools.html),[`iVar`](https://andersen-lab.github.io/ivar/html/manualpage.html))
6969
18. Repeat step 12-15 multiple times for the denovo contig route
70-
19. Consensus evaluation and annotation ([`QUAST`](http://quast.sourceforge.net/quast),[`CheckV`](https://bitbucket.org/berkeleylab/checkv/src/master/),[`blastn`](https://blast.ncbi.nlm.nih.gov/Blast.cgi), [`mmseqs-search`](https://github.com/soedinglab/MMseqs2/wiki#batch-sequence-searching-using-mmseqs-search), [`MAFFT` - alignment of contigs vs iterations & consensus](https://mafft.cbrc.jp/alignment/software/))
70+
19. Consensus evaluation and annotation ([`QUAST`](http://quast.sourceforge.net/quast),[`CheckV`](https://bitbucket.org/berkeleylab/checkv/src/master/),[`blastn`](https://blast.ncbi.nlm.nih.gov/Blast.cgi),[`prokka`](http://github.com/tseemann/prokka) [`mmseqs-search`](https://github.com/soedinglab/MMseqs2/wiki#batch-sequence-searching-using-mmseqs-search), [`MAFFT` - alignment of contigs vs iterations & consensus](https://mafft.cbrc.jp/alignment/software/))
7171
20. Result summary visualisation for raw read, alignment, assembly, variant calling and consensus calling results ([`MultiQC`](http://multiqc.info/))
7272

7373
## Usage

bin/extract_preclust.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -862,8 +862,10 @@ def parse_args(argv=None):
862862
parser.add_argument(
863863
"-u",
864864
"--keep-unclassified",
865-
action="store_true",
866-
default= False,
865+
nargs="?", # Makes the argument optional
866+
const=True, # Value when flag is present but no value provided
867+
default=False,
868+
type=lambda x: (str(x).lower() == 'true') if x is not None else True,
867869
help="Keep unclassified reads in the output.",
868870
)
869871

File renamed without changes.

0 commit comments

Comments
 (0)