Coder Social home page Coder Social logo

Syntax Error in det.py file about cellex HOT 12 CLOSED

perslab avatar perslab commented on August 20, 2024
Syntax Error in det.py file

from cellex.

Comments (12)

vidalmarroyo avatar vidalmarroyo commented on August 20, 2024 1

Yes! And thank you so much for your help with all of this. I will be re-trying this tomorrow on a cluster environment, and this will help me tons. I will keep you posted!

from cellex.

vidalmarroyo avatar vidalmarroyo commented on August 20, 2024 1

from cellex.

tstannius avatar tstannius commented on August 20, 2024

Hi!

Could you add the command that resulted in this error, to see if I can reproduce it?
Thanks in advance.

from cellex.

vidalmarroyo avatar vidalmarroyo commented on August 20, 2024

Yes! The command was 'pip install -e'. I was going through the walkthrough on https://github.com/perslab/CELLEX , using Option B on the setup

from cellex.

tstannius avatar tstannius commented on August 20, 2024

How odd. I am having trouble reproducing the error. Does my approach differ from yours?

install_cellex_option_b

Alternatively – how does it work for you installing directly from PyPi? I.e.

pip install cellex

The development version matches the release version ATM, so there's not much to gain by installing from the development branch.

from cellex.

vidalmarroyo avatar vidalmarroyo commented on August 20, 2024

Hmm, I gave both a try (both the way you did it in the gif and installing cellex via pip) and neither worked :/ i'm thinking it may be the version of python my terminal is set up with.... what version is used?

from cellex.

tstannius avatar tstannius commented on August 20, 2024

Bummer, but we'll just have to try something else then :-) and thank you for your patience in that regard.

CELLEX has been developed for use in a Python 3 environment.

I generally use conda environments (miniconda3) to manage the installation. Here's what I do step by step in my terminal:

# create environment
conda create --no-default-packages --name myenv python

# activate env
source activate myenv

# check python version, should be >3.8
python --version

# install cellex – various dependencies will be installed first
pip install cellex

# test installation in interactive python
python

>>> import cellex
>>>

If this does not help, could you provide my some more details about your system and each step you do to produce the error?

from cellex.

tstannius avatar tstannius commented on August 20, 2024

Hi again Vidal,

Have you made any progress on this issue? πŸ™‚

from cellex.

vidalmarroyo avatar vidalmarroyo commented on August 20, 2024

Hello Tobias,

Just following up, what are the bare minimum requirements in terms of software (IE python, snakemake, etc.) and versions to run CELLECT/CELLEX? We are working with our clustering management team to download any necessary software, so I want to make sure have all that up front :)

from cellex.

tstannius avatar tstannius commented on August 20, 2024

Hi again Vidal!

CELLECT/CELLEX were developed on a server, so I'm not entirely sure how it will behave if run on a cluster – nevertheless ...
We have sought to make both CELLECT and CELLEX self-contained. Ideally the environment manager (conda) and package manager (pip) should take care of everything, i.e. installing dependencies. The workflow is essentially: 1) create a virtual environment, 2) install the needed dependencies in the environment, 3) run the analysis. Therefore I would recommend that you start off with the most recent version of conda, pip and python3.

For CELLEX

  • Get conda
  • Create a new python3 environment and activate it
  • Run pip install cellex, which will also install the required dependencies.
  • Play around with CELLEX

For CELLECT

  • (Get conda)
  • Follow this tutorial.
  • Step 1: The principle is almost the same as for CELLEX. To run the GWAS munge workflow, you create an environment (including all dependencies) as specified in this settings file.
  • Step 2: Run CELLEX
  • Step 3: Once again, create a new environment with snakemake (pip install snakemake for the most recent version).

If this doesn't work out, I'll try and get an expert opinion from the CELLECT devs or our server admin :-)

from cellex.

vidalmarroyo avatar vidalmarroyo commented on August 20, 2024

Tobias - thank you so much for all of this info! I am also sorry that this has taken a lot of effort and time on your end without much output on our end yet. I am realizing that a lot of these issues are actually driven by my current cluster access situation, so I am going to work within my group to solve those. I will reach out again if I think there is a larger issue - but for the time being I'm set :) thank you and take care!

from cellex.

tstannius avatar tstannius commented on August 20, 2024

Hi! Thanks for following up and don't worry – I'm happy to help :-)
Don't hesitate to file a new issue if needed. Take care!

from cellex.

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.