> For the complete documentation index, see [llms.txt](https://patlas.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://patlas.gitbook.io/docs/usage/sidebar/statistics.md).

# Statistics

pAtlas provides the user with many capabilities concerning the visualization of the results' distribution. It allows to have an overview of the number of selected plasmids that belong to a given **species**, **genus**, **family** or **order**. This visualization can be performed a given selection, either with the area selection tool (shift + mouse click and dragging) (for more details on [Graph interaction](/docs/usage/graph.md#area-selection)), or with the filters or imports.

> The Statistics shown are dependent on the selection performed. For a reset click on the **reset nodes** button located at the top of the pATLAS interface.

## Taxa

Bar plot with the number of occurences of each taxa (Species, Genera, Families and Orders) in the current selection.

![](/files/-LJYLWK1toSb3_qGa-lG)

## Annotation

Similar to [Taxa plots](/docs/usage/sidebar/statistics.md#Taxa), but with information on resistance and virulence genes, and plasmid families.

## Other

### Length

Length of all selected plasmids. This plot presents two series:

* **Scatter**, which shows the length of each plasmid individually.
* **Histogram**, which shows the size distribution in the selected plasmids.

This plot is interactive, allowing clicks on the scatter points (plasmids) to highligh it's respective bin, or vice versa.

![](/files/-LJYLWK3nCG8SloiSDEO)

### Clusters

Plasmid distribution per cluster. The cluster are defined by plasmids that share links with each other.

![](/files/-LJYLWK5qELyBFTe-dgv)

## Additional plot options

In each statistics plot there are additional plot options that can be explored:

* At the **top left corner** of the plot window:
  * A button to **sort in descending order** of values in `y axis`.
  * A button to **sort in alphabetic order** of the legend in the `x axis`.
* At the **bottom left corner** the plot window:
  * a **question mark** button that shows **additional controls** to use in the plot area.

    `Ctrl + left mouse` click will enable panning of the plot and `left mouse click + dragging`

    will enable zooming in a given area of the plot.
* At the **top right corner** of the plot window:
  * **export options** for the plot:
    * Print the plot
    * Save to file:
      * PNG
      * JPEG
      * PDF
      * SVG
  * A **Clear highlights** button to clear all highlights made in the plot.
  * A **Highlight on plasmid network** button update the selection made in&#x20;

    the plasmid network for the plasmids contained in the selected bars.&#x20;

    Only available for bar plots.

## Make selections using the barplots

It is possible to make selections using the bar plots available in pATLAS, either in the [Taxa](https://github.com/tiagofilipe12/pATLAS/tree/70001e32d809856e7f793ffcebd527d812e7824e/docs/statistics.md#Taxa) or [Annotation](https://github.com/tiagofilipe12/pATLAS/tree/70001e32d809856e7f793ffcebd527d812e7824e/docs/statistics.md#Annotation) plots.

![](/files/-LJYLWK7qDTsS3pZxz2L) (Note: the final image doesn't seem to have selections but there are some nodes with an halo around them. In pATLAS they will appear in green. Also, bars will not be grey but instead they will turn red when clicked.)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://patlas.gitbook.io/docs/usage/sidebar/statistics.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
