Copying all inputs? Or just the taxonomy files?
# createtaxdb
j
Copying all inputs? Or just the taxonomy files?
m
Copy code
custom_db = custom_library_dir ? "mkdir ${prefix} && cp -rL library taxonomy ${custom_seqid2taxid} ${prefix}" : ""
                                                          ^
    run_cleanup = keep_intermediate ? "" : """
    find -L ${prefix} -type f \\
        -not -name "*.kdb" \\
        -not -name "*idx" \\
        -not -name "taxDB" \\
        -not -name "*.counts" \\
        -delete && \\
    find -type d -empty -delete
    """
I'll push the draft PR.
What's the other mode of use for this module. I'm confused by the
Copy code
custom_db = custom_library_dir ? "mkdir ${prefix} && cp -rL library taxonomy ${custom_seqid2taxid} ${prefix}" : ""
line.
custom_library_dir
is the primary input, so it should always be there right?
And there's no nf-test for it for it being empty.
j
Ahhhh it might be that it you don't supply the fastas in the premade directory structure, it will download refseq or genbank by default?
Ah no
Maybe the pattern was copied form another module ...
m
The PR is ready for review