Irrationone / cellassign

Automated, probabilistic assignment of cell types in scRNA-seq data
Other
191 stars 79 forks source link

Problem to install cellassign in Rstudio #45

Open key1356 opened 4 years ago

key1356 commented 4 years ago

Hi, I can not install cellassign in Rstudio. I even tried R console with the same errors happen. There are several errors that I do not know if they are separate or derive from the same problem.

devtools::install_github("Irrationone/cellassign") Downloading GitHub repo Irrationone/cellassign@master These packages have more recent versions available. Which would you like to update?

1: All
2: CRAN packages only
3: None
4: Biobase (2.42.0 -> 2.44.0) [CRAN] 5: BiocGenerics (0.28.0 -> 0.30.0) [CRAN] 6: BiocParallel (1.16.6 -> 1.18.1) [CRAN] 7: edgeR (3.24.3 -> 3.26.8) [CRAN] 8: limma (3.38.3 -> 3.40.6) [CRAN] 9: matrixStats (0.54.0 -> 0.55.0) [CRAN] 10: lambda.r (1.2.3 -> 1.2.4 ) [CRAN] 11: RcppAnnoy (0.0.12 -> 0.0.13) [CRAN] 12: RcppHNSW (0.1.0 -> 0.2.0 ) [CRAN] 13: pkgconfig (2.0.2 -> 2.0.3 ) [CRAN] 14: digest (0.6.20 -> 0.6.21) [CRAN] 15: ellipsis (0.2.0.1 -> 0.3.0 ) [CRAN]

Enter one or more numbers, or an empty line to skip updates: 3 √ checking for file 'C:\Users\key\AppData\Local\Temp\RtmpgtITQJ\remotes2b401eec5abe\Irrationone-cellassign-dc8ee37/DESCRIPTION' ...

Installing package into ‘C:/Users/key/Documents/R/win-library/3.6’ (as ‘lib’ is unspecified)

When I install python 64bit, It complains alternatively about:

error: Your current architecture is 64bit however this version of Python is compiled for 32bit.

Also to confirm Tensorflow installation I tried:

library("tensorflow", lib.loc="~/R/win-library/3.6") Warning message: multiple methods tables found for ‘lengths’ sess = tf$Session() C:\Users\KEY\AppData\Local\CONTIN~1\ANACON~1\envs\R-TENS~1\lib\site-packages\tensorflow\python\framework\dtypes.py:516: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint8 = np.dtype([("qint8", np.int8, 1)]) C:\Users\KEY\AppData\Local\CONTIN~1\ANACON~1\envs\R-TENS~1\lib\site-packages\tensorflow\python\framework\dtypes.py:517: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint8 = np.dtype([("quint8", np.uint8, 1)]) C:\Users\KEY\AppData\Local\CONTIN~1\ANACON~1\envs\R-TENS~1\lib\site-packages\tensorflow\python\framework\dtypes.py:518: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint16 = np.dtype([("qint16", np.int16, 1)]) C:\Users\KEY\AppData\Local\CONTIN~1\ANACON~1\envs\R-TENS~1\lib\site-packages\tensorflow\python\framework\dtypes.py:519: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint16 = np.dtype([("quint16", np.uint16, 1)]) C:\Users\KEY\AppData\Local\CONTIN~1\ANACON~1\envs\R-TENS~1\lib\site-packages\tensorflow\python\framework\dtypes.py:520: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint32 = np.dtype([("qint32", np.int32, 1)]) C:\Users\KEY\AppData\Local\CONTIN~1\ANACON~1\envs\R-TENS~1\lib\site-packages\tensorflow\python\framework\dtypes.py:525: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. np_resource = np.dtype([("resource", np.ubyte, 1)]) C:\Users\KEY\AppData\Local\CONTIN~1\ANACON~1\envs\R-TENS~1\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:541: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint8 = np.dtype([("qint8", np.int8, 1)]) C:\Users\KEY\AppData\Local\CONTIN~1\ANACON~1\envs\R-TENS~1\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:542: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint8 = np.dtype([("quint8", np.uint8, 1)]) C:\Users\KEY\AppData\Local\CONTIN~1\ANACON~1\envs\R-TENS~1\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:543: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint16 = np.dtype([("qint16", np.int16, 1)]) C:\Users\KEY\AppData\Local\CONTIN~1\ANACON~1\envs\R-TENS~1\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:544: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint16 = np.dtype([("quint16", np.uint16, 1)]) C:\Users\KEY\AppData\Local\CONTIN~1\ANACON~1\envs\R-TENS~1\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:545: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint32 = np.dtype([("qint32", np.int32, 1)]) C:\Users\KEY\AppData\Local\CONTIN~1\ANACON~1\envs\R-TENS~1\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:550: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. np_resource = np.dtype([("resource", np.ubyte, 1)]) WARNING:tensorflow:From C:\Users\KEY\AppData\Local\CONTIN~1\ANACON~1\envs\R-TENS~1\lib\site-packages\tensorflow\python\util\deprecation_wrapper.py:119: The name tf.Session is deprecated. Please use tf.compat.v1.Session instead.

hello <- tf$constant('Hello, TensorFlow!') sess$run(hello) b'Hello, TensorFlow!'

I think it has something to do with Tensorflow detection.

key1356 commented 4 years ago

Also I can not install it through conda:

(tf-cell) C:\Users\key>conda install -c conda-forge -c bioconda r-cellassign Collecting package metadata (current_repodata.json): done Solving environment: failed with current_repodata.json, will retry with next repodata source. Collecting package metadata (repodata.json): done Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

Current channels:

To search for alternate channels that may provide the conda package you're looking for, navigate to

https://anaconda.org

and use the search bar at the top of the page.

kieranrcampbell commented 4 years ago

Okay this looks like the same issue we're having fun with over in #52 which I think is a windows-specific can't locate correct version of tensorflow as per here https://github.com/rstudio/tensorflow/issues/95

Can you post the output of tensorflow::tf_config() and reticulate::py_config() ?

Thanks