microbiome / mia

Microbiome analysis
https://microbiome.github.io/mia/
Artistic License 2.0
46 stars 25 forks source link

mergeSEs fix #452

Closed TuomasBorman closed 8 months ago

TuomasBorman commented 9 months ago

In some rare cases (like in some dataset in MGnify), the data is merged incorrectly. This occurs when

  1. there are samples (unique TreeSE objects) that have different amount of phylogenetic ranks
  2. There are rows that match
  3. Rows have only data in certain level (like kingdom level) and other levels are NA

For example rows:

  1. Kingdom: Bacteria - Phyla: NA - rownames: 123
  2. Kingdom: Bacteria - rownames: 123

are not merged currently together even though they represent the same taxa. This PR fixes this