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

run mistakes #25

Open
czppeter opened this issue Mar 2, 2022 · 4 comments
Open

run mistakes #25

czppeter opened this issue Mar 2, 2022 · 4 comments

Comments

@czppeter
Copy link

czppeter commented Mar 2, 2022

Traceback (most recent call last):
File "/gss1/home/zpchen/miniconda3/envs/ribotish/bin/ribotish", line 56, in
main()
File "/gss1/home/zpchen/miniconda3/envs/ribotish/bin/ribotish", line 34, in main
commands[cmd].run(args)
File "/gss1/home/zpchen/miniconda3/envs/ribotish/lib/python2.7/site-packages/ribotish/run/quality.py", line 85, in run
cdsBins = args.bins, numProc = args.numProc, verbose = args.verbose, geneformat = args.geneformat)
File "/gss1/home/zpchen/miniconda3/envs/ribotish/lib/python2.7/site-packages/ribotish/zbio/ribo.py", line 980, in lendis
for result in len_iter:
File "/gss1/home/zpchen/miniconda3/envs/ribotish/lib/python2.7/site-packages/ribotish/zbio/ribo.py", line 942, in _lendis_trans
for r in bam.transReadsIter(bamfile, t, compatible=False, maxNH=maxNH, minMapQ=minMapQ, secondary=secondary, paired=paired, flank=flank):
File "/gss1/home/zpchen/miniconda3/envs/ribotish/lib/python2.7/site-packages/ribotish/zbio/bam.py", line 498, in transReadsIter
for read in rds: #yield read
File "/gss1/home/zpchen/miniconda3/envs/ribotish/lib/python2.7/site-packages/ribotish/zbio/bam.py", line 52, in fetch_reads
if minMapQ is not None and read.mapping_quality < minMapQ : continue
AttributeError: 'csamtools.AlignedRead' object has no attribute 'mapping_quality'

@zhpn1024
Copy link
Owner

zhpn1024 commented Mar 2, 2022

What's your pysam version?

@zhpn1024
Copy link
Owner

zhpn1024 commented Mar 2, 2022

I mean pysam. The latest version of pysam is 0.18.0

@czppeter
Copy link
Author

czppeter commented Mar 2, 2022

pysam (0.6)

@zhpn1024
Copy link
Owner

zhpn1024 commented Mar 2, 2022

pysam (0.6)

A higher version (pysam >= 0.8.3) is required.
https://github.com/zhpn1024/ribotish/blob/master/INSTALL.rst

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