You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(gbrs) $ gbrs bam2emase -i test.bam -m R84-REL1505/ref.transcripts.info -s A,B,C,D,E,F,G,H -o test.emase
Traceback (most recent call last):
File "anaconda3/envs/gbrs/bin/gbrs", line 4, in <module>
__import__('pkg_resources').run_script('gbrs==0.1.5', 'gbrs')
File "anaconda3/envs/gbrs/lib/python2.7/site-packages/pkg_resources/__init__.py", line 664, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "anaconda3/envs/gbrs/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1444, in run_script
exec(code, namespace, namespace)
File "anaconda3/envs/gbrs/lib/python2.7/site-packages/gbrs-0.1.5-py2.7.egg-info/scripts/gbrs", line 199, in <module>
sys.exit(main())
File "anaconda3/envs/gbrs/lib/python2.7/site-packages/gbrs-0.1.5-py2.7.egg-info/scripts/gbrs", line 195, in main
args.func(**kws)
File "anaconda3/envs/gbrs/lib/python2.7/site-packages/gbrs/emase_utils.py", line 101, in bam2emase
alignmat_factory.prepare(haplotypes, loci, outdir=os.path.dirname(outfile))
File "anaconda3/envs/gbrs/lib/python2.7/site-packages/emase/AlignmentMatrixFactory.py", line 48, in prepare
locus, hap = fh.getrname(aln.tid).split(delim)
AttributeError: 'NoneType' object has no attribute 'split'
I fixed the error by adding this line above line 48 in AlignmentMatrixFactory.py
if aln.flag != 4 and aln.flag != 8:
if aln.tid==-1: continue
locus, hap = fh.getrname(aln.tid).split(delim)
These were the commands I used before on a small test case
For reads like these:
I get this error when running
bam2emase
I fixed the error by adding this line above line 48 in
AlignmentMatrixFactory.py
These were the commands I used before on a small test case
Thanks!
The text was updated successfully, but these errors were encountered: