Skip to content

AddMetaData turning characters into NAs #922

Closed
@crazyhottommy

Description

@crazyhottommy

please find the info below.

> pbmc_small <- AddMetaData(
+   object = pbmc_small,
+   metadata = cluster_letters,
+   col.name = 'letter.idents'
+ )
> head(x = pbmc_small@meta.data)
               nGene nUMI    orig.ident res.0.8 res.1 letter.idents
ATGCCAGAACGACT    47   70 SeuratProject       0     0          <NA>
CATGGCCTGTGCAT    52   85 SeuratProject       0     0          <NA>
GAACCTGATGAACC    50   87 SeuratProject       0     0          <NA>
TGACTGGATTCTCA    56  127 SeuratProject       0     0          <NA>
AGTCAGACTGCACA    53  173 SeuratProject       0     0          <NA>
TCTGATACACGTGT    48   70 SeuratProject       0     0          <NA>
> devtools::session_info()
Session info -----------------------------------------------------------------------------------
 setting  value                       
 version  R version 3.5.1 (2018-07-02)
 system   x86_64, darwin15.6.0        
 ui       RStudio (1.2.1013)          
 language (EN)                        
 collate  en_US.UTF-8                 
 tz       America/New_York            
 date     2018-11-08                  

Packages ---------------------------------------------------------------------------------------
 package       * version  date       source                                            
 acepack         1.4.1    2016-10-29 CRAN (R 3.5.0)                                    
 ape             5.2      2018-09-24 CRAN (R 3.5.0)                                    
 assertthat      0.2.0    2017-04-11 cran (@0.2.0)                                     
 backports       1.1.2    2017-12-13 CRAN (R 3.5.0)                                    
 base          * 3.5.1    2018-07-05 local                                             
 base64enc       0.1-3    2015-07-28 CRAN (R 3.5.0)                                    
 bibtex          0.4.2    2017-06-30 CRAN (R 3.5.0)                                    
 bindr           0.1.1    2018-03-13 cran (@0.1.1)                                     
 bindrcpp        0.2.2    2018-03-29 cran (@0.2.2)                                     
 bit             1.1-14   2018-05-29 CRAN (R 3.5.0)                                    
 bit64           0.9-7    2017-05-08 CRAN (R 3.5.0)                                    
 bitops          1.0-6    2013-08-17 CRAN (R 3.5.0)                                    
 broom           0.5.0    2018-07-17 CRAN (R 3.5.0)                                    
 caTools         1.17.1.1 2018-07-20 CRAN (R 3.5.0)                                    
 cellranger      1.1.0    2016-07-27 CRAN (R 3.5.0)                                    
 checkmate       1.8.5    2017-10-24 cran (@1.8.5)                                     
 class           7.3-14   2015-08-30 CRAN (R 3.5.1)                                    
 cli             1.0.1    2018-09-25 cran (@1.0.1)                                     
 cluster         2.0.7-1  2018-04-13 CRAN (R 3.5.1)                                    
 codetools       0.2-15   2016-10-05 CRAN (R 3.5.1)                                    
 colorspace      1.3-2    2016-12-14 cran (@1.3-2)                                     
 compiler        3.5.1    2018-07-05 local                                             
 cowplot       * 0.9.3    2018-07-15 cran (@0.9.3)                                     
 crayon          1.3.4    2017-09-16 cran (@1.3.4)                                     
 data.table      1.11.8   2018-09-30 CRAN (R 3.5.0)                                    
 datasets      * 3.5.1    2018-07-05 local                                             
 DEoptimR        1.0-8    2016-11-19 CRAN (R 3.5.0)                                    
 devtools        1.13.6   2018-06-27 CRAN (R 3.5.0)                                    
 digest          0.6.17   2018-09-12 CRAN (R 3.5.0)                                    
 diptest         0.75-7   2016-12-05 CRAN (R 3.5.0)                                    
 doSNOW          1.0.16   2017-12-13 CRAN (R 3.5.0)                                    
 doubletFinder * 1.0.0    2018-10-31 Github (chris-mcginnis-ucsf/doubletFinder@730e2f1)
 dplyr         * 0.7.6    2018-06-29 cran (@0.7.6)                                     
 dtw             1.20-1   2018-05-18 CRAN (R 3.5.0)                                    
 fitdistrplus    1.0-11   2018-09-10 CRAN (R 3.5.0)                                    
 flexmix         2.3-14   2017-04-28 CRAN (R 3.5.0)                                    
 forcats       * 0.3.0    2018-02-19 CRAN (R 3.5.0)                                    
 foreach         1.4.4    2017-12-12 cran (@1.4.4)                                     
 foreign         0.8-70   2017-11-28 CRAN (R 3.5.1)                                    
 Formula         1.2-3    2018-05-03 CRAN (R 3.5.0)                                    
 fpc             2.1-11.1 2018-07-20 CRAN (R 3.5.0)                                    
 fs            * 1.2.6    2018-08-23 CRAN (R 3.5.0)                                    
 gbRd            0.4-11   2012-10-01 CRAN (R 3.5.0)                                    
 gdata           2.18.0   2017-06-06 CRAN (R 3.5.0)                                    
 ggplot2       * 3.0.0    2018-07-03 cran (@3.0.0)                                     
 ggridges        0.5.1    2018-09-27 CRAN (R 3.5.0)                                    
 glue            1.3.0    2018-07-17 CRAN (R 3.5.0)                                    
 gplots          3.0.1    2016-03-30 CRAN (R 3.5.0)                                    
 graphics      * 3.5.1    2018-07-05 local                                             
 grDevices     * 3.5.1    2018-07-05 local                                             
 grid            3.5.1    2018-07-05 local                                             
 gridExtra       2.3      2017-09-09 cran (@2.3)                                       
 gtable          0.2.0    2016-02-26 cran (@0.2.0)                                     
 gtools          3.8.1    2018-06-26 CRAN (R 3.5.0)                                    
 haven           1.1.2    2018-06-27 CRAN (R 3.5.0)                                    
 hdf5r           1.0.1    2018-10-07 CRAN (R 3.5.0)                                    
 here          * 0.1      2017-05-28 CRAN (R 3.5.0)                                    
 Hmisc           4.1-1    2018-01-03 CRAN (R 3.5.0)                                    
 hms             0.4.2    2018-03-10 cran (@0.4.2)                                     
 htmlTable       1.12     2018-05-26 CRAN (R 3.5.0)                                    
 htmltools       0.3.6    2017-04-28 CRAN (R 3.5.0)                                    
 htmlwidgets     1.3      2018-09-30 CRAN (R 3.5.0)                                    
 httr            1.3.1    2017-08-20 CRAN (R 3.5.0)                                    
 ica             1.0-2    2018-05-24 CRAN (R 3.5.0)                                    
 igraph          1.2.2    2018-07-27 cran (@1.2.2)                                     
 irlba           2.3.2    2018-01-11 CRAN (R 3.5.0)                                    
 iterators       1.0.10   2018-07-13 cran (@1.0.10)                                    
 jsonlite        1.5      2017-06-01 CRAN (R 3.5.0)                                    
 kernlab         0.9-27   2018-08-10 CRAN (R 3.5.0)                                    
 KernSmooth      2.23-15  2015-06-29 CRAN (R 3.5.1)                                    
 knitr           1.20     2018-02-20 CRAN (R 3.5.0)                                    
 labeling        0.3      2014-08-23 cran (@0.3)                                       
 lars            1.2      2013-04-24 CRAN (R 3.5.0)                                    
 lattice         0.20-35  2017-03-25 CRAN (R 3.5.1)                                    
 latticeExtra    0.6-28   2016-02-09 CRAN (R 3.5.0)                                    
 lazyeval        0.2.1    2017-10-29 cran (@0.2.1)                                     
 lmtest          0.9-36   2018-04-04 CRAN (R 3.5.0)                                    
 lsei            1.2-0    2017-10-23 CRAN (R 3.5.0)                                    
 lubridate       1.7.4    2018-04-11 CRAN (R 3.5.0)                                    
 magrittr        1.5      2014-11-22 CRAN (R 3.5.0)                                    
 MASS            7.3-50   2018-04-30 CRAN (R 3.5.1)                                    
 Matrix        * 1.2-14   2018-04-13 CRAN (R 3.5.1)                                    
 mclust          5.4.1    2018-06-27 CRAN (R 3.5.0)                                    
 memoise         1.1.0    2017-04-21 CRAN (R 3.5.0)                                    
 metap           1.0      2018-07-25 CRAN (R 3.5.0)                                    
 methods       * 3.5.1    2018-07-05 local                                             
 mixtools        1.1.0    2017-03-10 CRAN (R 3.5.0)                                    
 modelr          0.1.2    2018-05-11 CRAN (R 3.5.0)                                    
 modeltools      0.2-22   2018-07-16 CRAN (R 3.5.0)                                    
 munsell         0.5.0    2018-06-12 cran (@0.5.0)                                     
 mvtnorm         1.0-8    2018-05-31 CRAN (R 3.5.0)                                    
 nlme            3.1-137  2018-04-07 CRAN (R 3.5.1)                                    
 nnet            7.3-12   2016-02-02 CRAN (R 3.5.1)                                    
 npsurv          0.4-0    2017-10-14 CRAN (R 3.5.0)                                    
 parallel        3.5.1    2018-07-05 local                                             
 pbapply         1.3-4    2018-01-10 CRAN (R 3.5.0)                                    
 pillar          1.3.0    2018-07-14 cran (@1.3.0)                                     
 pkgconfig       2.0.2    2018-08-16 cran (@2.0.2)                                     
 plyr            1.8.4    2016-06-08 cran (@1.8.4)                                     
 png             0.1-7    2013-12-03 CRAN (R 3.5.0)                                    
 prabclus        2.2-6    2015-01-14 CRAN (R 3.5.0)                                    
 proxy           0.4-22   2018-04-08 CRAN (R 3.5.0)                                    
 purrr         * 0.2.5    2018-05-29 cran (@0.2.5)                                     
 R.methodsS3     1.7.1    2016-02-16 CRAN (R 3.5.0)                                    
 R.oo            1.22.0   2018-04-22 CRAN (R 3.5.0)                                    
 R.utils         2.7.0    2018-08-27 CRAN (R 3.5.0)                                    
 R6              2.2.2    2017-06-17 CRAN (R 3.5.0)                                    
 RANN            2.6      2018-07-16 CRAN (R 3.5.0)                                    
 RColorBrewer    1.1-2    2014-12-07 cran (@1.1-2)                                     
 Rcpp            0.12.19  2018-10-01 CRAN (R 3.5.1)                                    
 Rdpack          0.10-1   2018-10-04 CRAN (R 3.5.0)                                    
 readr         * 1.1.1    2017-05-16 cran (@1.1.1)                                     
 readxl          1.1.0    2018-04-20 CRAN (R 3.5.0)                                    
 reshape2        1.4.3    2017-12-11 cran (@1.4.3)                                     
 reticulate      1.10     2018-08-05 CRAN (R 3.5.0)                                    
 rlang           0.2.2    2018-08-16 CRAN (R 3.5.0)                                    
 robustbase      0.93-3   2018-09-21 CRAN (R 3.5.0)                                    
 ROCR            1.0-7    2015-03-26 CRAN (R 3.5.0)                                    
 rpart           4.1-13   2018-02-23 CRAN (R 3.5.1)                                    
 rprojroot       1.3-2    2018-01-03 CRAN (R 3.5.0)                                    
 rstudioapi      0.7      2017-09-07 CRAN (R 3.5.0)                                    
 Rtsne           0.13     2017-04-14 CRAN (R 3.5.0)                                    
 rvest           0.3.2    2016-06-17 CRAN (R 3.5.0)                                    
 scales          1.0.0    2018-08-09 cran (@1.0.0)                                     
 SDMTools        1.1-221  2014-08-05 CRAN (R 3.5.0)                                    
 segmented       0.5-3.0  2017-11-30 CRAN (R 3.5.0)                                    
 Seurat        * 2.3.4    2018-07-17 CRAN (R 3.5.0)                                    
 snow            0.4-3    2018-09-14 CRAN (R 3.5.0)                                    
 splines         3.5.1    2018-07-05 local                                             
 stats         * 3.5.1    2018-07-05 local                                             
 stats4          3.5.1    2018-07-05 local                                             
 stringi         1.2.4    2018-07-20 CRAN (R 3.5.0)                                    
 stringr       * 1.3.1    2018-05-10 CRAN (R 3.5.0)                                    
 survival        2.42-3   2018-04-16 CRAN (R 3.5.1)                                    
 tibble        * 1.4.2    2018-01-22 cran (@1.4.2)                                     
 tidyr         * 0.8.1    2018-05-18 cran (@0.8.1)                                     
 tidyselect      0.2.4    2018-02-26 cran (@0.2.4)                                     
 tidyverse     * 1.2.1    2017-11-14 CRAN (R 3.5.0)                                    
 tools           3.5.1    2018-07-05 local                                             
 trimcluster     0.1-2.1  2018-07-20 CRAN (R 3.5.0)                                    
 tsne            0.1-3    2016-07-15 CRAN (R 3.5.0)                                    
 utils         * 3.5.1    2018-07-05 local                                             
 withr           2.1.2    2018-03-15 CRAN (R 3.5.0)                                    
 xml2            1.2.0    2018-01-24 CRAN (R 3.5.0)                                    
 zoo             1.8-4    2018-09-19 CRAN (R 3.5.0) 

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions