question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

If this tool published to cell, How the reviewer tested your tool? And they allowed you to publish this tool to cell with lots of problems?

See original GitHub issue

When I am running this command: adata = dyn.sample_data.DentateGyrus() def dynamo_workflow(adata): adata = dyn.pp.recipe_monocle(adata)

dyn.tl.dynamics(adata)

dyn.tl.reduceDimension(adata)

dyn.tl.cell_velocities(adata, calc_rnd_vel=True)

dyn.vf.VectorField(adata, basis='umap')

dynamo_workflow(adata) I got this: |-----> recipe_monocle_keep_filtered_cells_key is None. Using default value from DynamoAdataConfig: recipe_monocle_keep_filtered_cells_key=True |-----> recipe_monocle_keep_filtered_genes_key is None. Using default value from DynamoAdataConfig: recipe_monocle_keep_filtered_genes_key=True |-----> recipe_monocle_keep_raw_layers_key is None. Using default value from DynamoAdataConfig: recipe_monocle_keep_raw_layers_key=True |-----> apply Monocole recipe to adata… |-----> <insert> pp to uns in AnnData Object. |-----------> <insert> has_splicing to uns[‘pp’] in AnnData Object. |-----------> <insert> has_labling to uns[‘pp’] in AnnData Object. |-----------> <insert> splicing_labeling to uns[‘pp’] in AnnData Object. |-----------> <insert> has_protein to uns[‘pp’] in AnnData Object. |-----> ensure all cell and variable names unique. |-----> ensure all data in different layers in csr sparse matrix format. |-----> ensure all labeling data properly collapased |-----------> <insert> tkey to uns[‘pp’] in AnnData Object. |-----------> <insert> experiment_type to uns[‘pp’] in AnnData Object. |-----? dynamo detects your data is size factor normalized and/or log transformed. If this is not right, plese set `normalized = False. |-----> filtering cells… |-----> <insert> pass_basic_filter to obs in AnnData Object. |-----> 18213 cells passed basic filters. |-----> filtering gene… |-----> <insert> pass_basic_filter to var in AnnData Object. |-----> 7960 genes passed basic filters. |-----> calculating size factor… |-----> selecting genes in layer: X, sort method: SVR… |-----> <insert> frac to var in AnnData Object. |-----> <insert> X_unspliced to layers in AnnData Object. |-----> <insert> X_spliced to layers in AnnData Object. |-----------> <insert> norm_method to uns[‘pp’] in AnnData Object. |-----> applying PCA … |-----> <insert> pca_fit to uns in AnnData Object. |-----> <insert> ntr to obs in AnnData Object. |-----> <insert> ntr to var in AnnData Object. |-----> cell cycle scoring… |-----> computing cell phase… |-----> [cell phase estimation] in progress: 100.0000% |-----> [cell phase estimation] finished [210.0349s] |-----> <insert> cell_cycle_phase to obs in AnnData Object. |-----> <insert> cell_cycle_scores to obsm in AnnData Object. |-----> [Cell Cycle Scores Estimation] in progress: 100.0000% |-----> [Cell Cycle Scores Estimation] finished [3.4422s] |-----> [recipe_monocle preprocess] in progress: 100.0000% |-----> [recipe_monocle preprocess] finished [16.9428s]

-----> dynamics_del_2nd_moments_key is None. Using default value from DynamoAdataConfig: dynamics_del_2nd_moments_key=False
AttributeError Traceback (most recent call last)
Input In [34], in <cell line: 1>()
----> 1 dynamo_workflow(adata)

Input In [30], in dynamo_workflow(adata) 1 def dynamo_workflow(adata): 2 adata = dyn.pp.recipe_monocle(adata) ----> 4 dyn.tl.dynamics(adata) 6 dyn.tl.reduceDimension(adata) 8 dyn.tl.cell_velocities(adata, calc_rnd_vel=True)

File /opt/anaconda3/lib/python3.9/site-packages/dynamo/tools/dynamics.py:297, in dynamics(adata, filter_gene_mode, use_smoothed, assumption_mRNA, assumption_protein, model, est_method, NTR_vel, group, protein_names, concat_data, log_unnormalized, one_shot_method, fraction_for_deg, re_smooth, sanity_check, del_2nd_moments, cores, tkey, **est_kwargs) 73 “”“Inclusive model of expression dynamics considers splicing, metabolic labeling and protein translation. It 74 support learning high-dimensional velocity vector samples for droplet based (10x, inDrop, drop-seq, etc), 75 scSLAM-seq, NASC-seq sci-fate, scNT-seq, scEU-seq, cite-seq or REAP-seq datasets. (…) 291 log_unnormalized: Whether to log transform unnormalized data. 292 “”” 294 del_2nd_moments = DynamoAdataConfig.use_default_var_if_none( 295 del_2nd_moments, DynamoAdataConfig.DYNAMICS_DEL_2ND_MOMENTS_KEY 296 ) –> 297 if “pp” not in adata.uns_keys(): 298 raise ValueError(f"\nPlease run dyn.pp.receipe_monocle(adata) before running this function!") 299 if tkey is None:

AttributeError: ‘NoneType’ object has no attribute ‘uns_keys’

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
chansigitcommented, Aug 31, 2022

Dynamo is fantastic. @Spartanzhao is rude. good luck with your job interview @Xiaojieqiu

agree.

@Spartanzhao Zhao, Dynamo is not only a useful tool, but also a landscape perspective viewing the cells. Qiu and his team have been constantly improving the quality of this work. I believe It’s your loss if you miss this work for minor issues.

2reactions
hyjforesightcommented, Jul 19, 2022

Dynamo is fantastic. @Spartanzhao is rude. good luck with your job interview @Xiaojieqiu

Read more comments on GitHub >

github_iconTop Results From Across the Web

Information for Authors - Cell Press
Our goal is to publish the best, most exciting thought-provoking science and to provide you with our best assessment of whether we think...
Read more >
Reviewer guide | Journal of Cell Science
Journal of Cell Science asks reviewers of Tools & Resources papers to assess whether the paper describes a novel technique, or a sufficiently...
Read more >
Submission Guidelines | PLOS ONE
This allows editors and reviewers to consult the detailed step-by-step protocol when evaluating your manuscript.
Read more >
Rayyan—a web and mobile app for systematic reviews
Synthesis of multiple randomized controlled trials (RCTs) in a systematic review can summarize the effects of individual outcomes and ...
Read more >
Author Guidelines | The Plant Cell - Oxford Academic
Because of the pandemic, there may be delays during peer review. We also understand that our authors might not be able to meet...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found