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

Error when providing barcoding summary files #129

Open
zhxiaokang opened this issue Aug 3, 2021 · 1 comment
Open

Error when providing barcoding summary files #129

zhxiaokang opened this issue Aug 3, 2021 · 1 comment

Comments

@zhxiaokang
Copy link

Describe the bug
When providing barcoding summary files by parameter -b, I got this error:

Checking arguments values
Check input data files
Parse data files
Merge data
Traceback (most recent call last):
  File "/opt/miniconda3/envs/pycoQC/lib/python3.6/site-packages/pandas/core/indexes/base.py", line 2895, in get_loc
    return self._engine.get_loc(casted_key)
  File "pandas/_libs/index.pyx", line 70, in pandas._libs.index.IndexEngine.get_loc
  File "pandas/_libs/index.pyx", line 101, in pandas._libs.index.IndexEngine.get_loc
  File "pandas/_libs/hashtable_class_helper.pxi", line 1675, in pandas._libs.hashtable.PyObjectHashTable.get_item
  File "pandas/_libs/hashtable_class_helper.pxi", line 1683, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'barcode'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/miniconda3/envs/pycoQC/bin/pycoQC", line 33, in <module>
    sys.exit(load_entry_point('pycoQC', 'console_scripts', 'pycoQC')())
  File "/Users/xiaokangzhang/Research/nanopore_gene_fusion/qc/tools/pycoQC/pycoQC/__main__.py", line 132, in main_pycoQC
    quiet = args.quiet)
  File "/Users/xiaokangzhang/Research/nanopore_gene_fusion/qc/tools/pycoQC/pycoQC/pycoQC.py", line 129, in pycoQC
    quiet=quiet)
  File "/Users/xiaokangzhang/Research/nanopore_gene_fusion/qc/tools/pycoQC/pycoQC/pycoQC_parse.py", line 101, in __init__
    self.reads_df = self._merge_reads_df(summary_reads_df, barcode_reads_df, bam_reads_df)
  File "/Users/xiaokangzhang/Research/nanopore_gene_fusion/qc/tools/pycoQC/pycoQC/pycoQC_parse.py", line 234, in _merge_reads_df
    df['barcode'].fillna('unclassified', inplace=True)
  File "/opt/miniconda3/envs/pycoQC/lib/python3.6/site-packages/pandas/core/frame.py", line 2902, in __getitem__
    indexer = self.columns.get_loc(key)
  File "/opt/miniconda3/envs/pycoQC/lib/python3.6/site-packages/pandas/core/indexes/base.py", line 2897, in get_loc
    raise KeyError(key) from err
KeyError: 'barcode'

To Reproduce
Steps to reproduce the behavior:

  1. Command I used: pycoQC -f nanopore/sequencing_summary_FAP55372_10ac6c35.txt -b nanopore/combined_barcoding_summary/barcoding_summary_barcode* -o nanopore/qc_output_pycoqc/pycoqc.html
  2. There are 12 files under folder nanopore/combined_barcoding_summary/ named like barcoding_summary_barcode*, eg. barcoding_summary_barcode01.txt

Desktop (please complete the following information):

  • OS: MacOS

Additional context

Add any other context about the problem here.

@alibioinfo
Copy link

Hello,
did you finaly find an solution ? if it's the case what was it please.
Thank you;

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

No branches or pull requests

2 participants