Vivianstats / scImpute

Accurate and robust imputation of scRNA-seq data
https://www.nature.com/articles/s41467-018-03405-7
90 stars 34 forks source link

outfile is space delimited rather than tab delimited #21

Open wangz10 opened 5 years ago

wangz10 commented 5 years ago

Hello Vivian,

I found the output file by scImpute is space delimited rather than tab delimited when I specify outfile='txt'

My full scimpute call:

scimpute(count_path, infile = "txt", outfile = "txt", type = "count",
  out_dir, labeled = TRUE, drop_thre = 0.5, Kcluster = NULL,
  labels = labels$cell_type, genelen = genelen, ncores = 8)
> sessionInfo()
R version 3.5.0 (2018-04-23)
Platform: x86_64-apple-darwin17.6.0 (64-bit)
Running under: macOS High Sierra 10.13.5

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /usr/local/Cellar/openblas/0.3.0/lib/libopenblasp-r0.3.0.dev.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] parallel  stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] scImpute_0.0.9    doParallel_1.0.11 iterators_1.0.10  foreach_1.4.4     penalized_0.9-51  survival_2.42-4  

loaded via a namespace (and not attached):
 [1] compiler_3.5.0   Matrix_1.2-14    tools_3.5.0      rsvd_0.9         Rcpp_0.12.18     codetools_0.2-15
 [7] splines_3.5.0    grid_3.5.0       kernlab_0.9-27   lattice_0.20-35 

Thanks!

Vivianstats commented 5 years ago

Hello wangz10,

scImpute uses write.table to save the output to txt. The default setting of this function is to generate space delimited files.