MatthewHiggins2017 / bioconda-PrimedRPA

GNU General Public License v3.0
17 stars 22 forks source link

PrimeRPA failing with "return object.__getattribute__(self, name) AttributeError: 'DataFrame' object has no attribute 'append'" error #14

Open kbipinkumar opened 6 months ago

kbipinkumar commented 6 months ago

while running PrimedRPA (downloaded from Bioconda) we are encountering following error

$ PrimedRPA --InputFile HBV.fasta --RunID HBV_1

-------------------------------------------
----------------PrimedRPA------------------
-----Finding RPA Primer and Probe Sets-----
-------------Higgins M et al.--------------
-------------------------------------------

Generating Alignment Summary
multiprocessing.pool.RemoteTraceback: 
"""
Traceback (most recent call last):
  File "/home/obront/miniforge3/envs/primedrpa/lib/python3.8/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "/home/obront/miniforge3/envs/primedrpa/lib/python3.8/multiprocessing/pool.py", line 51, in starmapstar
    return list(itertools.starmap(args[0], args[1]))
  File "/home/obront/miniforge3/envs/primedrpa/bin/PrimedRPA", line 438, in CreatingInputHomologyDF
    AlignedDF = AlignedDF.append({'Index_Pos':seqindex,'Nucleotide':MostCommonN,'IdentityScore':NRepresentation},ignore_index=True)
  File "/home/obront/miniforge3/envs/primedrpa/lib/python3.8/site-packages/pandas/core/generic.py", line 5989, in __getattr__
    return object.__getattribute__(self, name)
AttributeError: 'DataFrame' object has no attribute 'append'
"""

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

Traceback (most recent call last):
  File "/home/obront/miniforge3/envs/primedrpa/bin/PrimedRPA", line 1046, in <module>
    CheckingAlignedOutputFile(AllParameter)
  File "/home/obront/miniforge3/envs/primedrpa/bin/PrimedRPA", line 806, in CheckingAlignedOutputFile
    AlignedDFMultiThreadOupt = pool.starmap(CreatingInputHomologyDF,MTDFOVI)
  File "/home/obront/miniforge3/envs/primedrpa/lib/python3.8/multiprocessing/pool.py", line 372, in starmap
    return self._map_async(func, iterable, starmapstar, chunksize).get()
  File "/home/obront/miniforge3/envs/primedrpa/lib/python3.8/multiprocessing/pool.py", line 771, in get
    raise self._value
AttributeError: 'DataFrame' object has no attribute 'append'

looks like this is related to issue mentioned here

https://stackoverflow.com/questions/75956209/error-dataframe-object-has-no-attribute-append