Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve setting of cell names #510

Merged
merged 10 commits into from
Jun 1, 2018
Merged

Conversation

lazappi
Copy link
Contributor

@lazappi lazappi commented May 30, 2018

With more people combining datasets for analysis with RunMultiCCA fixing duplicate cell names is becoming more of a problem as seen in #270, #290, #400, #505. To address this I have made the following changes:

  • Add a new RenameCells function that renames cells either by adding a prefix or replacing with a new vector of names
  • Modified MergeSeurat to use the new RenameCells function (to avoid duplication)
  • Add a new add.cell.ids parameter to RunMultiCCA which applies RenameCells to each object in object.list
  • Add new documentation and tests

lazappi added 8 commits May 30, 2018 10:38
* 'develop' of github.com:lazappi/seurat: (38 commits)
  Update .travis.yml
  Update .travis.yml
  fix hdf5r imports
  add option for variable gene selection
  add option in Read10X_h5 for ENSG names vs gene names
  run docs
  fixes 'implicit list embedding of S4 objects is deprecated' warning
  add function to read from hdf5 file
  Use scaler runif
  coeffRef(it.row(), it.col()) -> it.valueRef()
  Avoid unnecessary data.frame creation
  VlnPlot without jittered dots
  Fixes to 'show' method
  Minor syntactical changes (satijalab#12)
  Update plotting.R
  address PR satijalab#487 comments
  These changes are intended to fix issue 485
  Place formula inside parallel loop
  Avoid Closure
  Reduce Memory Usage in RegressOutResid
  ...
Update cell names in all the different parts of a Seurat object
Only tests the fields that are set in pbmc_small so misse a couple of less
common ones (kmeans and snn)
Also fix tabbing in RenameCells
* 'develop' of github.com:satijalab/seurat:
  install phate in travis_setup
  update NEWS
  merge travis setup scripts
  add travis_setup file
  fix hdf5 travis problems
  remove github deps
  setup file only exists in forked repo, include in .travis.yml for now
  locate setup file correctly
  reduce number of python versions
  download os appropriate miniconda
  miniconda might work better than apt
  try this a different way?
  apt doesn't have new enough version of python2, run tests with python3 instead?
  apt update to get latest python2
  don't install numpy with apt
  appveyor parse error
  attempt to make CI pass
  add PHATE dimensionality reduction
* develop:
  install phate in travis_setup
  update NEWS
  merge travis setup scripts
  add travis_setup file
  fix hdf5 travis problems
  remove github deps
  setup file only exists in forked repo, include in .travis.yml for now
  locate setup file correctly
  reduce number of python versions
  download os appropriate miniconda
  miniconda might work better than apt
  try this a different way?
  apt doesn't have new enough version of python2, run tests with python3 instead?
  apt update to get latest python2
  don't install numpy with apt
  appveyor parse error
  attempt to make CI pass
  add PHATE dimensionality reduction
@lazappi
Copy link
Contributor Author

lazappi commented May 30, 2018

Merged develop to hopefully get Travis working after #511.

@andrewwbutler andrewwbutler merged commit c67472c into satijalab:develop Jun 1, 2018
@andrewwbutler
Copy link
Collaborator

Thanks Luke! Very helpful function and should reduce confusion when analyzing multiple datasets.

@lazappi
Copy link
Contributor Author

lazappi commented Jun 3, 2018

No worries. Sorry for those couple of bugs, thanks for checking!

@nbahlis
Copy link

nbahlis commented Jun 5, 2018

Hello,
when using RenameCells I get the error "invalid dimnames given for "dgCMatrix" object "
Does RenameCells work with sparse matrices?

thanks

@lazappi
Copy link
Contributor Author

lazappi commented Jun 5, 2018

@nbahlis I think it might be better to discuss this as an issue rather than on this pull request so I have opened #523

andrewwbutler added a commit that referenced this pull request Jan 22, 2021
remove CheckMatrix(), to be moved into SeuratObject
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants