Giter Site home page Giter Site logo

Comments (2)

AAA-3 avatar AAA-3 commented on June 13, 2024

UPDATE: Ran my updated code on jupyter notebook with the solutions listed above and here is the outcome... I do not know why we need to make the gene names different since we are looking only at cell ID but I did it any way (not shown).

Loading loom files and packages
image

loom file index:
image

loading seurat files (NOTE: manually changed Cell IDs) and attempting to merge
image

Error:
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
/tmp/ipykernel_34687/274049558.py in <module>
      1 #integration...originally cellID_obs[cellID_obs_WT3[0]
----> 2 cellID_obs_WT3 = cellID_obs[cellID_obs[z].str.contains("221929_WT3:")]
      3 cellID_obs_WT4 = cellID_obs[cellID_obs[z].str.contains("222863_WT4:")]
      4 cellID_obs_KO4 = cellID_obs[cellID_obs[z].str.contains("222862_KO4:")]
      5 cellID_obs_KO5 = cellID_obs[cellID_obs[z].str.contains("222864_KO5:")]

NameError: name 'z' is not defined

Changing the code to the suggestion in #9 produced the following error:
image

Anyone know how to proceed?

from seurat-to-rna-velocity.

AAA-3 avatar AAA-3 commented on June 13, 2024

In case anyone else runs into this issue, I just manually went in and created a new .CSV with just the one column. That way, if python is selecting the whole df, there is no way it selects anything else...kind of a long way round since the code is supposed to do it for me but I couldn't find why it was not cooperating.

from seurat-to-rna-velocity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.