CVUA-RRW / FooDMe

A reproducible and scalable snakemake workflow for the analysis of DNA metabarcoding experiments, with a special focus on food and feed samples.
https://cvua-rrw.github.io/FooDMe
BSD 3-Clause "New" or "Revised" License
4 stars 1 forks source link

Panda CopyWarning #31

Closed gregdenay closed 2 years ago

gregdenay commented 2 years ago

Cause of warning is concatenate_uniq() in workflow/rules/common.smk

Needs to be fixed to avoid problems later

CopyWarning:
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value instead

See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
  self._set_item(key, value)
gregdenay commented 2 years ago

Fixed in #35