HATK
HATK copied to clipboard
'Series' object has no attribute 'iteritems'
I am using the following code, slightly modified from the example code, and getting the below error
python HATK.py \ --hg 18 \ --hped example/wtccc_filtered_58C_RA.hatk.300+300.hped2 \ --bfile example/wtccc_filtered_58C_RA.hatk.300+300.hg18.chr6.29-34mb \ --pheno example/wtccc_filtered_58C_RA.hatk.300+300.phe \ --pheno-name RA \ --imgt 3320 \ --imgt-dir example/IMGTHLA3320/ \ --multiprocess 8 \ --out example/trial_result/wtccc_58C_RA.hg18.result.chr6.29-34mb.ALL \ --java-mem 4g \ --nthreads 4
The error:
""" Traceback (most recent call last): File "/software/c4/cbi/software/miniconda3-23.3.1-0-py39/lib/python3.9/multiprocessing/pool.py", line 125, in worker result = (True, func(*args, **kwds)) File "/c4/home/zquandt/HATK/IMGT2Seq/src/ProcessIMGT.py", line 438, in ProcessIMGT setPositionOfIndel(precursor2_AA_forMAP) File "/c4/home/zquandt/HATK/IMGT2Seq/src/ProcessIMGT.py", line 1150, in setPositionOfIndel for i, value in _df_precursor.iloc[:, 0].iteritems(): File "/c4/home/zquandt/.local/lib/python3.9/site-packages/pandas/core/generic.py", line 6204, in getattr return object.getattribute(self, name) AttributeError: 'Series' object has no attribute 'iteritems' """
The above exception was the direct cause of the following exception:
[ProcessIMGT.py]: Generating sequence information dictionary for HLA-MICA. multiprocessing.pool.RemoteTraceback: """ Traceback (most recent call last): File "/software/c4/cbi/software/miniconda3-23.3.1-0-py39/lib/python3.9/multiprocessing/pool.p y", line 125, in worker result = (True, func(*args, **kwds)) File "/c4/home/zquandt/HATK/IMGT2Seq/src/ProcessIMGT.py", line 438, in ProcessIMGT setPositionOfIndel(precursor2_AA_forMAP) File "/c4/home/zquandt/HATK/IMGT2Seq/src/ProcessIMGT.py", line 1150, in setPositionOfIndel for i, value in _df_precursor.iloc[:, 0].iteritems(): File "/c4/home/zquandt/.local/lib/python3.9/site-packages/pandas/core/generic.py", line 6204, in getattr return object.getattribute(self, name) AttributeError: 'Series' object has no attribute 'iteritems' """
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/c4/home/zquandt/HATK/HATK.py", line 130, in