Git Product home page Git Product logo

Comments (13)

GregorySchwartz avatar GregorySchwartz commented on May 31, 2024

What is the error?

from too-many-cells.

GregorySchwartz avatar GregorySchwartz commented on May 31, 2024

I would like to see the error, but either way I'll provide a nix derivation for reproducibility.

from too-many-cells.

whateverxzy avatar whateverxzy commented on May 31, 2024

I use nix to install all the packages.

-- While building package spectral-clustering-0.3.2.2 (scroll up to its section to see the error) using:
/home/xzy/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_3.0.1.0_ghc-8.8.3 --builddir=.stack-work/dist/x86_64-linux/Cabal-3.0.1.0 build --ghc-options " -fdiagnostics-color=always"
Process exited with code: ExitFailure 1

The above is the error, which I couldn't install spectral-clustering, this package.

from too-many-cells.

GregorySchwartz avatar GregorySchwartz commented on May 31, 2024

The error is further up (scroll up to its section to see the error), can you paste the entire command and result? I should also mention that birch-beer does have a docker image so you shouldn't need to build it from source unless you have to.

from too-many-cells.

GregorySchwartz avatar GregorySchwartz commented on May 31, 2024

I won't necessarily say the error is fixed, but you can workaround it using the just added nix derivation (GregorySchwartz/birch-beer@5496922).

from too-many-cells.

whateverxzy avatar whateverxzy commented on May 31, 2024

“stack install birch-beer“,this was the command that I used. And it began to download the packages that I need, but it exited in the half way.The following is the part of the codes :
spectral-clustering > /tmp/stack-410d0d861ff2f281/spectral-clustering-0.3.2.2/src/Math/Clustering/Spectral/Sparse.hs:111:25: error:
spectral-clustering > Not in scope: ‘S.imapSM’
spectral-clustering > Perhaps you meant one of these:
spectral-clustering > ‘V.imapM’ (imported from Data.Vector),
spectral-clustering > ‘U.imapM’ (imported from Data.Vector.Unboxed),
spectral-clustering > ‘S.immSM’ (imported from Data.Sparse.Common)
spectral-clustering > Module ‘Data.Sparse.Common’ does not export ‘imapSM’.
spectral-clustering > |
spectral-clustering > 111 | bdToC (B b) (D d) = C . S.imapSM (\ !i _ !x -> (S.lookupDenseSV i d') * x) $ b
spectral-clustering > | ^^^^^^^^
spectral-clustering >
Progress 1/3

-- While building package spectral-clustering-0.3.2.2 (scroll up to its section to see the error) using:
/home/xzy/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_3.0.1.0_ghc-8.8.3 --builddir=.stack-work/dist/x86_64-linux/Cabal-3.0.1.0 build --ghc-options " -fdiagnostics-color=always"
Process exited with code: ExitFailure 1

And I don't understand that added nix derivation. I thought stack must need nix, and I already installed nix. I have no idea that what to do next. Should Iuse docker to install too-many-cells ?

from too-many-cells.

GregorySchwartz avatar GregorySchwartz commented on May 31, 2024

Ah, this would be because these packages now depend on my fork of sparse-linear-algebra (https://github.com/GregorySchwartz/sparse-linear-algebra) which exposes some of the API used upstream. As I've moved to nix, the stack.yaml has not been updated with the link for my fork. In answer to your questions: stack and nix are separate projects and I intended for the nix installation to completely replace stack. To install too-many-cells from source:

git clone https://github.com/GregorySchwartz/too-many-cells.git
cd too-many-cells
nix-env -f default.nix -i too-many-cells

To install birch-beer if you want to plot any generic tree:

git clone https://github.com/GregorySchwartz/birch-beer.git
cd birch-beer
nix-env -f default.nix -i birch-beer

Let me know if it works out for you!

from too-many-cells.

whateverxzy avatar whateverxzy commented on May 31, 2024

Sorry to not to reply you timely. The method you mentioned was useful, and I have installed birch-beer successfully.Thank you for your help.
But I have a problem now, which is I can't get labels.csv file. I used the codes :
cat /home/xzy/文档/DND41_DMSO_scRNA_barcodes.tsv | sed "s/-1/-1,Marrow/" | s/-2/etc... > labels.csv
bash: s/-2/etc...: 没有那个文件或目录
the meaning of the Chinaese is the file or directory doesn't exist.
I don't know how to fix this.

from too-many-cells.

GregorySchwartz avatar GregorySchwartz commented on May 31, 2024

You didn't use another sed command for your second replacement, you just put the argument without quotes. To fix: ...sed "s/-1/-1,Marrow/" | sed "s/-2/...

from too-many-cells.

whateverxzy avatar whateverxzy commented on May 31, 2024

I used your method, but it seemed that it didn't work. I couldn't find the labels.csv file.
Your readme.org said the labels.csv.file can be accomplished with the barcode.tsv file with the command:
cat barcodes.tsv | sed "s/-1/-1,Marrow/" | s/-2/etc... > labels.csv
But where should I write the directory for the labels.csv file? And if I succeeded, will the original barcode.tsv be changed?
Sorry to interrupt you all the time.

from too-many-cells.

GregorySchwartz avatar GregorySchwartz commented on May 31, 2024

I think you might be copying and pasting it directly which is not a valid command. It's meant to illustrate how you would use sed commands to generate the files. If you want, to avoid this kind of command line usage, you can specify a label for each matrix with -Z (check out too-many-cells make-tree -h for more information).

from too-many-cells.

whateverxzy avatar whateverxzy commented on May 31, 2024

Sorry to not reply you in time, I have so many things to do recently that I had no time to apply your method for me. Luckily, I have solved the problem of input files, and I really appreciate your help. However, when I want to do the default run, I run across a problem:it keeps showing" Invalid argument `/home/xzy/文档/output/clusters.csv'" and my codes are as follows:
too-many-cells make-tree \

--matrix-path /home/xzy/文档/input
--labels-file /home/xzy/文档/labels.csv
--draw-collection "PieRing"
--output /home/xzy/文档/output
/home/xzy/文档/output/clusters.csv

Invalid argument `/home/xzy/文档/output/clusters.csv'
At first, I thought the problem is that I shouldn't give the directory of clusters.csv. Even though I deleted the directory, it didn't work either.And the codes are:
too-many-cells make-tree \

--matrix-path /home/xzy/文档/input
--labels-file /home/xzy/文档/labels.csv
--draw-collection "PieRing"
--output /home/xzy/文档/output
clusters.csv
Invalid argument `/home/xzy/文档/input'
I don't know which step is mistaken.

from too-many-cells.

GregorySchwartz avatar GregorySchwartz commented on May 31, 2024

I don't know if your formatting is getting messed up by the post to github, but it looks like you didn't pipe into clusters.csv. You want > clusters.csv to pipe it in.

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.