pavlidislab / bioluigi Goto Github PK
View Code? Open in Web Editor NEWReusable and maintained Luigi tasks to incorporate in bioinformatics pipelines
Home Page: https://bioluigi.readthedocs.io/en/stable/
License: Apache License 2.0
Reusable and maintained Luigi tasks to incorporate in bioinformatics pipelines
Home Page: https://bioluigi.readthedocs.io/en/stable/
License: Apache License 2.0
In case of a disabled task, this re enables the task for being scheduled at a later point.
In the case of upstream disabled task, it is useful to re enable the dependencies recursively.
bioluigi reenable [--recursive] TASK_ID
Off the top of my head:
This could be done by exposing parameters in the task definition.
This would apply to indexed BAMs and VCFs and possibly other tabular format with tabix
. This would basically turn the folowwing:
class TaskThatProducesIndexedOutput(luigi.Task):
def output(self):
return luigi.LocalTarget('test.vcf.gz'), luigi.LocalTarget('test.vcf.tbi.gz')
Into:
class TaskThatProducesIndexedOutput(luigi.Task):
def output(self):
return bioluigi.targets.IndexedLocalTarget('test.vcf.gz')
It would be considered complete if both resulting local targets exist.
Using srun needlessly requires ports for communicating with the remote node and can result in too many processes.
This could be useful for cross-platform fs events: https://pythonhosted.org/watchdog/index.html
Traceback (most recent call last):
File "/space/grp/poirigui/miniconda3/envs/rnaseq-pipeline/lib/python3.9/site-packages/bioluigi/cli.py", line 151, in list
tasks.update(rpc(scheduler_url, 'task_list', search=search, limit=limit))
File "/space/grp/poirigui/miniconda3/envs/rnaseq-pipeline/lib/python3.9/site-packages/bioluigi/cli.py", line 28, in rpc
raise TooManyTasksError(response_data['num_tasks'])
bioluigi.cli.TooManyTasksError: <exception str() failed>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/space/grp/poirigui/miniconda3/envs/rnaseq-pipeline/bin/bioluigi", line 8, in <module>
sys.exit(main())
File "/space/grp/poirigui/miniconda3/envs/rnaseq-pipeline/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/space/grp/poirigui/miniconda3/envs/rnaseq-pipeline/lib/python3.9/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/space/grp/poirigui/miniconda3/envs/rnaseq-pipeline/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/space/grp/poirigui/miniconda3/envs/rnaseq-pipeline/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/space/grp/poirigui/miniconda3/envs/rnaseq-pipeline/lib/python3.9/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/space/grp/poirigui/miniconda3/envs/rnaseq-pipeline/lib/python3.9/site-packages/click/decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "/space/grp/poirigui/miniconda3/envs/rnaseq-pipeline/lib/python3.9/site-packages/bioluigi/cli.py", line 153, in list
click.echo(e, err=True)
File "/space/grp/poirigui/miniconda3/envs/rnaseq-pipeline/lib/python3.9/site-packages/click/utils.py", line 258, in echo
out: t.Optional[t.Union[str, bytes]] = str(message)
File "/space/grp/poirigui/miniconda3/envs/rnaseq-pipeline/lib/python3.9/site-packages/bioluigi/cli.py", line 19, in __str__
return 'That request would return {} tasks; try filtering by status, glob query or set the --no-limit flag.'.format(format_number(self.num_tasks) if self.num_tasks else 'an unknown amount of')
File "/space/grp/poirigui/miniconda3/envs/rnaseq-pipeline/lib/python3.9/site-packages/babel/numbers.py", line 353, in format_number
return format_decimal(number, locale=locale)
File "/space/grp/poirigui/miniconda3/envs/rnaseq-pipeline/lib/python3.9/site-packages/babel/numbers.py", line 419, in format_decimal
format = locale.decimal_formats.get(format)
AttributeError: 'NoneType' object has no attribute 'decimal_formats'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.