Closed hmaru closed 3 years ago
Hi there
That is a bug. A bad regular expression, you have to reinstall.
library(ampvis2)
#> Loading required package: ggplot2
d <- amp_load(otutable = example_otutable,
metadata = example_metadata)
amp_heatmap(d,
tax_aggregate = "Species",
tax_add = "Genus",
tax_empty = "OTU",
)
#> Warning: Transformation introduced infinite values in discrete y-axis
Created on 2020-09-01 by the reprex package (v0.3.0)
Thanks a lot for the quick update! I get the desired output and it saved me a lot of time to make the figures!
Hi,
When I make a heatmap with amp_heatmap(), it seems to always drop the first letter "s" in a species name. For example, "(Nitrospira) sublineage I" becomes "ublineage I". The above example occurred with the minimal example data indicated in the turorial.
Other examples seen with my own data include,
I tried to make a reproducible example with reprex, but couldn't figure out how to make it with read.csv() reading local files, so I just copy my script below. Here I'm just reading the minimal example csv files downloaded to my computer.
This is the output image, with a missing "s".![heatmap_missing_s](https://user-images.githubusercontent.com/557043/91829544-91890f80-ec7c-11ea-9d02-956506e648b7.png)