Skip to content

ValueError: columns cannot be a set #192

Open

Description

@JiawenWang-AI4S

When I use "CITE-seq-Count-R1./ SRR13724311_S1_L001_R1_001.fastq.gz-R2 SRR13724311_S1_L001_R2_001.fastq.gz-t Cmca9_tag_list_utf8.cfa-cbf 1-cbl 16-umif 17-umil 28 -cells 10000-o OUTFOLDER "is always normal. Always normal when Looking for a whitelist, Correcting cell barcodes appear later
Looking for a whitelist
Collapsing cell barcodes
Correcting umis
Traceback (most recent call last):
File "/home/wangjiawen/miniconda3/bin/CITE-seq-Count", line 8, in
sys.exit(main())
The File "/ home/wangjiawen/miniconda3 / lib/python3.9 / site - packages/cite_seq_count / main. Py", line 603, in the main
io.write_dense(
The File "/ home/wangjiawen/miniconda3 / lib/python3.9 / site - packages/cite_seq_count/IO. Py", 48, the line in write_dense
pandas_dense = pd.DataFrame(sparse_matrix.todense(), columns=columns, index=index)
The File "/ home/wangjiawen/miniconda3 / lib/python3.9 / site - packages/pandas/core/frame. Py", line 744, in init
raise ValueError("columns cannot be a set")
ValueError: columns cannot be a set, how do I solve this problem, this seems to be a python package error

Activity

  1. JiawenWang-AI4S commented on Apr 29, 2024

    @JiawenWang-AI4S
    Author

    Thanks a lot, I use pandas 1.4.0 to solve this problem.

  2. JiawenWang-AI4S commented on Apr 29, 2024

    @JiawenWang-AI4S
    Author

    My output file is
    "drwxr-xr-x 2 89 Apr 29 12:50 read_count
    -rw-r--r-- 1 605 Apr 29 12:50 run_report.yaml
    drwxr-xr-x 2 89 Apr 29 12:50 umi_count
    drwxr-xr-x 2 36 Apr 29 12:50 uncorrected_cells
    -rw-r--r-- 1 9711 Apr 29 12:50 unmapped.csv", the feature/barcode and matrix here are in R language, error occurs when reading 10x data“

    counts <- Read10X("/pool2/wangjiawen/fastq_2/SRR13724311/OUTFOLDER/read_count/")
    Error in [.data.frame(feature.names, , gene.column) :
    undefined columns selected
    counts <- Read10X("/pool2/wangjiawen/fastq_2/SRR13724311/OUTFOLDER/umi_count/")
    Error in [.data.frame(feature.names, , gene.column) :
    undefined columns selected”, what should I do?

  3. lemon-latte commented on Jun 19, 2024

    @lemon-latte

    import data into R by following code:
    counts <- Read10X("/pool2/wangjiawen/fastq_2/SRR13724311/OUTFOLDER/umi_count/",gene.column = 1)

    My output file is "drwxr-xr-x 2 89 Apr 29 12:50 read_count -rw-r--r-- 1 605 Apr 29 12:50 run_report.yaml drwxr-xr-x 2 89 Apr 29 12:50 umi_count drwxr-xr-x 2 36 Apr 29 12:50 uncorrected_cells -rw-r--r-- 1 9711 Apr 29 12:50 unmapped.csv", the feature/barcode and matrix here are in R language, error occurs when reading 10x data“

    counts <- Read10X("/pool2/wangjiawen/fastq_2/SRR13724311/OUTFOLDER/read_count/")
    Error in [.data.frame(feature.names, , gene.column) :
    undefined columns selected
    counts <- Read10X("/pool2/wangjiawen/fastq_2/SRR13724311/OUTFOLDER/umi_count/")
    Error in [.data.frame(feature.names, , gene.column) :
    undefined columns selected”, what should I do?

  4. added a commit that references this issue on Jul 22, 2024
    22e9c44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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