SWittouck / SCARAP

A toolkit for prokaryotic comparative genomics
GNU General Public License v3.0
25 stars 5 forks source link

FutureWarning aggregate pandas sample module #18

Closed TomEile closed 2 years ago

TomEile commented 2 years ago

Returns a warning in the sample module when running on +4500 genomes.

SCARAP/src/scarap/modules.py:526: FutureWarning: ['orthogroup'] did not aggregate successfully. If any error is raised this will raise in a future version of pandas. Drop these columns/ops to avoid this warning. ids = hits.groupby("genome").aggregate(lambda l: meanp(l, p))

SWittouck commented 2 years ago

Thanks for reporting this @TomEile !

Fixed.