Git Product home page Git Product logo

Comments (7)

ccruizm avatar ccruizm commented on May 29, 2024

Hello! I am having the same problem

 Cannot read draw-leaf. If using DrawContinuous, remember to put features in a list: DrawItem (DrawContinuous [\"FEATURE\"])
CallStack (from HasCallStack):
  error, called at app/Main.hs:363:36 in main:Main

I used as input a csv but have tried several times and still get the same error

My code:

singularity run too-many-cells make-tree \
    --prior immune_out \
    --matrix-path immune.csv \
    --labels-file labels.celltype_immune.csv \
    --smart-cutoff 1 \
    --min-size 1 \
    --draw-leaf "DrawItem (DrawContinuous [(\"CD14\"), (\"P2RY12\")])" \
    --draw-colors "[\"#e41a1c\", \"#377eb8\", \"#4daf4a\", \"#eaeaea\"]" \
    --draw-scale-saturation 10 \
    --output out_gene_expression \
    > clusters_pruned_immune.csv

Thanks in advance for the help!

from too-many-cells.

GregorySchwartz avatar GregorySchwartz commented on May 29, 2024

You have parentheses around each feature in --draw-leaf. Try removing them and re-run the command.

from too-many-cells.

ccruizm avatar ccruizm commented on May 29, 2024

Still same problem. Changed to --draw-leaf "DrawItem (DrawContinuous [\"CD14\", \"P2RY12\"])"

from too-many-cells.

GregorySchwartz avatar GregorySchwartz commented on May 29, 2024

Could you maybe have Unicode instead of ASCII symbols in your command? Can I see your latest command with the latest error?

from too-many-cells.

ccruizm avatar ccruizm commented on May 29, 2024

I think I only have ASCII symbols. Below my entire command

 singularity run too-many-cells m
>     --prior gbm_immune_out \
>     --matrix-path gbm_immune.csv \
>     --labels-file labels.celltype_immune.csv \
>     --smart-cutoff 1 \
>     --min-size 1 \
>     --draw-leaf "DrawItem (DrawContinuous [\"CD14\", \"P2RY12\"])" \
>     --draw-colors "[\"#e41a1c\", \"#377eb8\", \"#4daf4a\", \"#eaeaea\"]" \
>     --draw-scale-saturation 10 \
>     --output out_gene_expression \
>     > clusters_pruned_immune.csv
Planning leaf colors [=====>..............................................]  10%too-many-cells: Cannot read draw-leaf. If using DrawContinuous, remember to put features in a list: DrawItem (DrawContinuous [\"FEATURE\"])
CallStack (from HasCallStack):
  error, called at app/Main.hs:363:36 in main:Main

from too-many-cells.

GregorySchwartz avatar GregorySchwartz commented on May 29, 2024

This looks fine... What if you put the string in single quotes with normal unescaped quotation marks for the features?

from too-many-cells.

GregorySchwartz avatar GregorySchwartz commented on May 29, 2024

How did you make the singularity image? What version of the docker?

from too-many-cells.

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.