Skip to content

Commit

Permalink
expand and fix text
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimens committed Jul 22, 2024
1 parent 3fb753c commit b7668ae
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/harpy/reports/impute.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -236,20 +236,24 @@ the reference allele (from the reference genome), `Alt` refers to the alternativ
allele, and `Missing` details how many SNPs remain missing
(failed to impute) for that individual. As an example, the `Homozygous Ref` is
the number of missing genotypes that were imputed into
a homozygous genotype for the reference allele. The table on the right is the
underlying data used to create the visualization. Clicking
on a plot will expand it to fill your browser window. Clicking it again will exit
out of the zoomed view.
a homozygous genotype for the reference allele. The table on the other tab is the
underlying data used to create the visualization.

```{r}
n_samples <- length(unique(gcts_long$sample))
plotheight <- 150 + (15 * n_samples)
figheight <- 1 + (0.2 * n_samples)
```

## ind stats plt
## ind stats plt {.tabset data-height=plotheight}
### Individuals Plot {.no-title}
```{r preprocess fields, echo = FALSE, message = FALSE, warning = FALSE, out.width = "100%"}
gcts_long$Conversion <- gsub("AltHom","Homozygous Alt", gcts_long$Conversion)
gcts_long$Conversion <- gsub("Het","Heterozygote", gcts_long$Conversion)
gcts_long$Conversion <- gsub("RefHom","Homozygous Ref", gcts_long$Conversion)
gcts_long$Conversion <- gsub("missing","not imputed", gcts_long$Conversion)
```
```{r percontig dist, echo = FALSE, message = FALSE, warning = FALSE, out.width = "100%"}
```{r per_indiv, echo = FALSE, message = FALSE, warning = FALSE,fig. height=figheight, out.width = "100%"}
hchart(gcts_long, "bar", hcaes(x = sample, y = Count, group = Conversion), stacking = "normal", animation = F) |>
hc_colors(c("#7cb3d4", "#b18ad1", "#ffd75f", "#6f6c70")) |>
hc_title(text = "Missing Genotype Imputations") |>
Expand Down

0 comments on commit b7668ae

Please sign in to comment.