jvfe / kraken2_latch Goto Github PK
View Code? Open in Web Editor NEWA LatchBio workflow for running Kraken2
Home Page: https://console.latch.bio/explore/82006/info
License: MIT License
A LatchBio workflow for running Kraken2
Home Page: https://console.latch.bio/explore/82006/info
License: MIT License
hello mr jvfe, thanks for your work
this workflow fails at the microview step for the attached tsv, providing the traceback below:
Running MicroView ๐ v0.9.4
Found 1 reports...
/opt/conda/lib/python3.9/site-packages/skbio/stats/ordination/_principal_coordinate_analysis.py:188: RuntimeWarning: invalid value encountered in divide
proportion_explained = eigvals / sum_eigenvalues
โญโโโโโโโโโโโโโโโโโโโโโ Traceback (most recent call last) โโโโโโโโโโโโโโโโโโโโโโโฎ
โ /opt/conda/lib/python3.9/site-packages/microview/cli.py:75 in main โ
โ โ
โ 72 โ โ โ if parsed_result is not None: โ
โ 73 โ โ โ โ tax_plots = generate_taxo_plots(tax_results, parsed_res โ
โ 74 โ โ โ else: โ
โ โฑ 75 โ โ โ โ tax_plots = generate_taxo_plots(tax_results) โ
โ 76 โ โ โ render_base(tax_plots=tax_plots, dir_path=data_source, outp โ
โ 77 โ โ console.print(f"\n Done!\n", style="bold green") โ
โ 78 โ except Exception: โ
โ โ
โ โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ locals โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ โ
โ โ console = <console width=80 None> โ โ
โ โ csv_file = None โ โ
โ โ data_source = PosixPath('/root/tsv_only') โ โ
โ โ output = PosixPath('/root/microview_report.html') โ โ
โ โ parsed_result = None โ โ
โ โ reports = [ โ โ
โ โ โ Sample( โ โ
โ โ โ โ report=PosixPath('/root/tsv_only/L01.tsv'), โ โ
โ โ โ โ report_type='kraken' โ โ
โ โ โ ) โ โ
โ โ ] โ โ
โ โ tax_results = { โ โ
โ โ โ 'sample n reads': index variable value โ โ
โ โ 0 L01.tsv assigned 94.554794 โ โ
โ โ 1 L01.tsv unassigned 5.445206, โ โ
โ โ โ 'common taxas': index โ โ
โ โ variable value โ โ
โ โ 1 L01.tsv unclassified 5.450000 โ โ
โ โ 5 L01.tsv other 3.528075 โ โ
โ โ 3 L01.tsv cellular organisms 0.550000 โ โ
โ โ 2 L01.tsv Saccharomycetaceae 0.840000 โ โ
โ โ 0 L01.tsv Saccharomyces cerevisiae S288C 89.180000 โ โ
โ โ 4 L01.tsv Saccharomyces 0.450000, โ โ
โ โ โ 'abund and div': index Shannon Diversity N โ โ
โ โ Taxas Pielou Evenness โ โ
โ โ 0 L01.tsv 0.896088 3013 0.111862, โ โ
โ โ โ 'beta div': โ โ
โ โ <skbio.stats.ordination._ordination_results.OrdinationRโฆ โ โ
โ โ object at 0x7f4fb1ed6a30> โ โ
โ โ } โ โ
โ โ taxonomy = PosixPath('/root/tsv_only') โ โ
โ โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ โ
โ โ
โ /opt/conda/lib/python3.9/site-packages/microview/plotting.py:134 in โ
โ generate_taxo_plots โ
โ โ
โ 131 โ # Beta diversity plots โ
โ 132 โ โ
โ 133 โ pcoa_embed = ( โ
โ โฑ 134 โ โ tax_data["beta div"].samples[["PC1", "PC2"]].rename_axis("samp โ
โ 135 โ ) โ
โ 136 โ var_explained = ( โ
โ 137 โ โ tax_data["beta div"] โ
โ โ
โ โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ locals โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ โ
โ โ assigned = Figure({ โ โ
โ โ โ 'data': [{'alignmentgroup': 'True', โ โ
โ โ โ โ โ 'hovertemplate': โ โ
โ โ 'Category=assigned<br>Sample name=%{x}<br>% of โ โ
โ โ reads=%{y}<extra></extra>', โ โ
โ โ โ โ โ 'legendgroup': 'assigned', โ โ
โ โ โ โ โ 'marker': {'color': '#636efa', 'pattern': โ โ
โ โ {'shape': ''}}, โ โ
โ โ โ โ โ 'name': 'assigned', โ โ
โ โ โ โ โ 'offsetgroup': 'assigned', โ โ
โ โ โ โ โ 'orientation': 'v', โ โ
โ โ โ โ โ 'showlegend': True, โ โ
โ โ โ โ โ 'textposition': 'auto', โ โ
โ โ โ โ โ 'type': 'bar', โ โ
โ โ โ โ โ 'x': array(['L01.tsv'], dtype=object), โ โ
โ โ โ โ โ 'xaxis': 'x', โ โ
โ โ โ โ โ 'y': array([94.55479444]), โ โ
โ โ โ โ โ 'yaxis': 'y'}, โ โ
โ โ โ โ โ {'alignmentgroup': 'True', โ โ
โ โ โ โ โ 'hovertemplate': โ โ
โ โ 'Category=unassigned<br>Sample name=%{x}<br>% of โ โ
โ โ reads=%{y}<extra></extra>', โ โ
โ โ โ โ โ 'legendgroup': 'unassigned', โ โ
โ โ โ โ โ 'marker': {'color': '#EF553B', 'pattern': โ โ
โ โ {'shape': ''}}, โ โ
โ โ โ โ โ 'name': 'unassigned', โ โ
โ โ โ โ โ 'offsetgroup': 'unassigned', โ โ
โ โ โ โ โ 'orientation': 'v', โ โ
โ โ โ โ โ 'showlegend': True, โ โ
โ โ โ โ โ 'textposition': 'auto', โ โ
โ โ โ โ โ 'type': 'bar', โ โ
โ โ โ โ โ 'x': array(['L01.tsv'], dtype=object), โ โ
โ โ โ โ โ 'xaxis': 'x', โ โ
โ โ โ โ โ 'y': array([5.44520556]), โ โ
โ โ โ โ โ 'yaxis': 'y'}], โ โ
โ โ โ 'layout': {'barmode': 'relative', โ โ
โ โ โ โ โ 'legend': {'title': {'text': 'Category'}, โ โ
โ โ 'tracegroupgap': 0}, โ โ
โ โ โ โ โ 'margin': {'t': 60}, โ โ
โ โ โ โ โ 'template': '...', โ โ
โ โ โ โ โ 'xaxis': {'anchor': 'y', โ โ
โ โ โ โ โ โ โ โ 'categoryorder': 'category โ โ
โ โ ascending', โ โ
โ โ โ โ โ โ โ โ 'domain': [0.0, 1.0], โ โ
โ โ โ โ โ โ โ โ 'title': {'text': 'Sample โ โ
โ โ name'}}, โ โ
โ โ โ โ โ 'yaxis': {'anchor': 'x', 'domain': [0.0, โ โ
โ โ 1.0], 'title': {'text': '% of reads'}}} โ โ
โ โ }) โ โ
โ โ assigned_html = '<div> <div โ โ
โ โ id="assigned-plot" class="plotly-graph-div'+8550 โ โ
โ โ contrast_df = None โ โ
โ โ tax_data = { โ โ
โ โ โ 'sample n reads': index variable value โ โ
โ โ 0 L01.tsv assigned 94.554794 โ โ
โ โ 1 L01.tsv unassigned 5.445206, โ โ
โ โ โ 'common taxas': index โ โ
โ โ variable value โ โ
โ โ 1 L01.tsv unclassified 5.450000 โ โ
โ โ 5 L01.tsv other 3.528075 โ โ
โ โ 3 L01.tsv cellular organisms 0.550000 โ โ
โ โ 2 L01.tsv Saccharomycetaceae 0.840000 โ โ
โ โ 0 L01.tsv Saccharomyces cerevisiae S288C 89.180000 โ โ
โ โ 4 L01.tsv Saccharomyces 0.450000, โ โ
โ โ โ 'abund and div': index Shannon Diversity N โ โ
โ โ Taxas Pielou Evenness โ โ
โ โ 0 L01.tsv 0.896088 3013 0.111862, โ โ
โ โ โ 'beta div': โ โ
โ โ <skbio.stats.ordination._ordination_results.OrdinationRโฆ โ โ
โ โ object at 0x7f4fb1ed6a30> โ โ
โ โ } โ โ
โ โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ โ
โ โ
โ /opt/conda/lib/python3.9/site-packages/pandas/core/frame.py:3811 in โ
โ __getitem__ โ
โ โ
โ 3808 โ โ else: โ
โ 3809 โ โ โ if is_iterator(key): โ
โ 3810 โ โ โ โ key = list(key) โ
โ โฑ 3811 โ โ โ indexer = self.columns._get_indexer_strict(key, "columns โ
โ 3812 โ โ โ
โ 3813 โ โ # take() does not accept boolean indexers โ
โ 3814 โ โ if getattr(indexer, "dtype", None) == bool: โ
โ โ
โ โญโโโโโโโโโโโโ locals โโโโโโโโโโโโโฎ โ
โ โ indexer = None โ โ
โ โ is_single_key = False โ โ
โ โ key = ['PC1', 'PC2'] โ โ
โ โ self = โ โ PC1 โ โ
โ โ L01.tsv 0.0 โ โ
โ โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ โ
โ โ
โ /opt/conda/lib/python3.9/site-packages/pandas/core/indexes/base.py:6113 in โ
โ _get_indexer_strict โ
โ โ
โ 6110 โ โ else: โ
โ 6111 โ โ โ keyarr, indexer, new_indexer = self._reindex_non_unique(k โ
โ 6112 โ โ โ
โ โฑ 6113 โ โ self._raise_if_missing(keyarr, indexer, axis_name) โ
โ 6114 โ โ โ
โ 6115 โ โ keyarr = self.take(indexer) โ
โ 6116 โ โ if isinstance(key, Index): โ
โ โ
โ โญโโโโโโโโโโโโโโโโโโโโโ locals โโโโโโโโโโโโโโโโโโโโโโโฎ โ
โ โ axis_name = 'columns' โ โ
โ โ indexer = array([ 0, -1]) โ โ
โ โ key = ['PC1', 'PC2'] โ โ
โ โ keyarr = Index(['PC1', 'PC2'], dtype='object') โ โ
โ โ self = Index(['PC1'], dtype='object') โ โ
โ โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ โ
โ โ
โ /opt/conda/lib/python3.9/site-packages/pandas/core/indexes/base.py:6176 in โ
โ _raise_if_missing โ
โ โ
โ 6173 โ โ โ โ raise KeyError(f"None of [{key}] are in the [{axis_na โ
โ 6174 โ โ โ โ
โ 6175 โ โ โ not_found = list(ensure_index(key)[missing_mask.nonzero() โ
โ โฑ 6176 โ โ โ raise KeyError(f"{not_found} not in index") โ
โ 6177 โ โ
โ 6178 โ @overload โ
โ 6179 โ def _get_indexer_non_comparable( โ
โ โ
โ โญโโโโโโโโโโโโโโโโโโโโโโโโโ locals โโโโโโโโโโโโโโโโโโโโโโโโโโฎ โ
โ โ axis_name = 'columns' โ โ
โ โ indexer = array([ 0, -1]) โ โ
โ โ key = Index(['PC1', 'PC2'], dtype='object') โ โ
โ โ missing_mask = array([False, True]) โ โ
โ โ nmissing = 1 โ โ
โ โ not_found = ['PC2'] โ โ
โ โ self = Index(['PC1'], dtype='object') โ โ
โ โ use_interval_msg = False โ โ
โ โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
KeyError: "['PC2'] not in index"
====================
2022-12-05 15:09:13,269 flytekit ERROR Failed to convert return value for var o0 with error <class 'flytekit.exceptions.user.FlyteAssertion'>: Failed to put data from /root/microview_report.html to latch:///kraken2/microview_report.html (recursive=False).
Original exception: [Errno 2] No such file or directory: '/root/microview_report.html'
====================
====================
2022-12-05 15:09:13,270 flytekit.entrypoint ERROR !! Begin System Error Captured by Flyte !!
====================
====================
2022-12-05 15:09:13,270 flytekit.entrypoint ERROR Traceback (most recent call last):
File "/opt/conda/lib/python3.9/site-packages/flytekit/exceptions/scopes.py", line 166, in system_entry_point
return wrapped(*args, **kwargs)
File "/opt/conda/lib/python3.9/site-packages/flytekit/core/base_task.py", line 525, in dispatch_execute
raise TypeError(
Message:
Failed to convert return value for var o0 for function wf.__init__.run_microview with error <class 'flytekit.exceptions.user.FlyteAssertion'>: Failed to put data from /root/microview_report.html to latch:///kraken2/microview_report.html (recursive=False).
Original exception: [Errno 2] No such file or directory: '/root/microview_report.html'
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.