Giter Site home page Giter Site logo

discotoolkit_py's People

Contributors

chengwei94 avatar lmw123 avatar uddamvathanak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

chengwei94

discotoolkit_py's Issues

an error is reported when getting metadata

Hi,

Thank you for your amazing tool!

When I used discotoolkit to get the sample's matadata, I found an error.

my code

import discotoolkit as dt

filter = dt.Filter(
    platform=["10x3'", "10x5'"]
)
metadata = dt.filter_disco_metadata(filter)
print(metadata.sample_metadata.shape)

the error

INFO:root:Retrieving metadata from DISCO database
INFO:root:Filtering sample
INFO:root:Retrieving cell type information of each sample from DISCO database
Traceback (most recent call last):
  File "D:\Code\PycharmProjects\bio_data_download\disco_down.py", line 45, in <module>
    metadata = down_10x()
  File "D:\Code\PycharmProjects\bio_data_download\disco_down.py", line 8, in down_10x
    metadata = dt.filter_disco_metadata(filter)
  File "D:\Develop\miniconda3\envs\py39\lib\site-packages\discotoolkit\GetMetadata.py", line 228, in filter_disco_metadata
    metadata["cell_number"] = list(sample_cell_count.loc[list(metadata["sampleId"])]["x"]) # assigning to the metadata
  File "D:\Develop\miniconda3\envs\py39\lib\site-packages\pandas\core\indexing.py", line 1073, in __getitem__
    return self._getitem_axis(maybe_callable, axis=axis)
  File "D:\Develop\miniconda3\envs\py39\lib\site-packages\pandas\core\indexing.py", line 1301, in _getitem_axis
    return self._getitem_iterable(key, axis=axis)
  File "D:\Develop\miniconda3\envs\py39\lib\site-packages\pandas\core\indexing.py", line 1239, in _getitem_iterable
    keyarr, indexer = self._get_listlike_indexer(key, axis)
  File "D:\Develop\miniconda3\envs\py39\lib\site-packages\pandas\core\indexing.py", line 1432, in _get_listlike_indexer
    keyarr, indexer = ax._get_indexer_strict(key, axis_name)
  File "D:\Develop\miniconda3\envs\py39\lib\site-packages\pandas\core\indexes\base.py", line 6070, in _get_indexer_strict
    self._raise_if_missing(keyarr, indexer, axis_name)
  File "D:\Develop\miniconda3\envs\py39\lib\site-packages\pandas\core\indexes\base.py", line 6133, in _raise_if_missing
    raise KeyError(f"{not_found} not in index")
KeyError: "['GSM5741306'] not in index"

two weeks ago it was working fine. I don't know where is the problem, my version is discotoolkit 1.1.2. thank you very much!

update DISCOtoolkit_py failure

Hi Mengwei,
Thank you very much for porting DISCO to python! I want to try to use disco_py, but I installed version 1.0.4 through pip, and the download of this version will fail. I tried to install version 1.0.7 locally and online, but I got an error. I don't know what to do.
Best
Mengtian
1684208244755
1684208174314
1684208219772

Gene ID search method excluding common gene names

Thank you very much for your impressive work!
Thank you again for the previous response. Additionally, I have noticed that some gene names are not included in the provided table in the dataset. Could you please help me with methods to obtain the IDs for these genes? For example: RP11-166D19.1, NPPA-AS1-1...

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.