New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: genefuse wrapper #493
Conversation
9dbe685
to
b43bafb
Compare
Hi @Smeds, thanks for your contribution! I was wondering, is the |
neither json or html are required! But from my understanding both will always be generated, if you don't use flags -h and -j you will end up with default names. Since the files always will be generated I thought it would be good pratices to force the user to specify the names, or set them to temp if snakemake should remove them. |
So the |
I
They will always be generated from what I can see. I can change to temporary files and then maybe add a check that at least one of html or json is specified? |
But why would we need to enforce that, if all works fine if |
Couldn't that give rise to confusing errors? Let say someone use the wrapper and specify output without using a keyword, in that case the program will run properly and snakemake would generate a missing output file error. |
I think that would be ok, since the user would have to figure out what is wrong. |
861e9b2
to
38b6d10
Compare
45f00be
to
63b6005
Compare
@fgvieira new pull-request where output is written to a temp folder and then copied to the specifed output path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description
Wrapper used to run genefuse
QC
For all wrappers added by this PR, I made sure that
input:
andoutput:
file paths in the resulting rule can be changed arbitrarily,threads: x
statement withx
being a reasonable default,map_reads
for a step that maps reads),environment.yaml
specifications follow the respective best practices,input:
oroutput:
),Snakefile
s and their entries are explained via comments (input:
/output:
/params:
etc.),stderr
and/orstdout
are logged correctly (log:
), depending on the wrapped tool,tempfile.gettempdir()
points to (see here; this also means that using any Pythontempfile
default behavior works),meta.yaml
contains a link to the documentation of the respective tool or command,Snakefile
s pass the linting (snakemake --lint
),Snakefile
s are formatted with snakefmt,