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

TypeError: Argument must be string or unicode #16

Open
humbleflowers opened this issue Aug 2, 2021 · 2 comments
Open

TypeError: Argument must be string or unicode #16

humbleflowers opened this issue Aug 2, 2021 · 2 comments

Comments

@humbleflowers
Copy link

humbleflowers commented Aug 2, 2021

I get the following error on running the following command on catfishq 1.1.15
catfishq -r flowcell_xyz/ --log DEBUG > catf.fastq

Searching flowcell_xyz/ for FASTQ files
Found 622 files
Traceback (most recent call last):
  File "/home/ubuntu/miniconda3/bin/catfishq", line 8, in <module>
    sys.exit(main())
  File "/home/ubuntu/miniconda3/lib/python3.8/site-packages/catfishq/cat_fastq.py", line 320, in main
    format_fq(
  File "/home/ubuntu/miniconda3/lib/python3.8/site-packages/catfishq/cat_fastq.py", line 285, in format_fq
    for entry in parse_fastqs(
  File "/home/ubuntu/miniconda3/lib/python3.8/site-packages/catfishq/cat_fastq.py", line 201, in parse_fastqs
    with pysam.FastxFile(filename) as fh:
  File "pysam/cfaidx.pyx", line 456, in pysam.cfaidx.FastxFile.__cinit__
  File "pysam/cfaidx.pyx", line 478, in pysam.cfaidx.FastxFile._open
  File "pysam/cutils.pyx", line 107, in pysam.cutils.encode_filename
TypeError: Argument must be string or unicode.

Thank you.

@humbleflowers
Copy link
Author

I tried with previous versions too. I get same error.

@philres
Copy link
Owner

philres commented Aug 3, 2021

Hi and thanks for the bug report.

Could I ask you what python version you are running catfishq with?

Thanks,
Philipp

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