<commit_before># Purescript Genetics Browser

# Usage

Make sure you have Purescript installed globally, e.g. using NPM:
```shell
npm install -g purescript
npm install
```

Install dependencies
```shell
npm run deps
```

Build a bundle for the renderer you want, like this:

```shell
npm run build-to pgb.js
```

This compiles a bundle to the file "pgb.js", which can be used by including it in a HTML page,
which exposes the main Halogen container at `PS`. Also make sure to include the Biodalliance
scripts if you are using it:
```html
<script language="javascript" src="./pgb.js"></script>
<script language="javascript" src="./dalliance-all.js"></script>
```


The browser requires a configuration to be run, in the form of a JS object. In the PS code
it is defined as a newtype record:<commit_msg>README: move "npm install" to be with "install dependencies"<commit_after># Purescript Genetics Browser

# Usage

Make sure you have Purescript installed globally, e.g. using NPM:
```shell
npm install -g purescript
```

Install dependencies
```shell
npm install
npm run deps
```

Build a bundle for the renderer you want, like this:

```shell
npm run build-to pgb.js
```

This compiles a bundle to the file "pgb.js", which can be used by including it in a HTML page,
which exposes the main Halogen container at `PS`. Also make sure to include the Biodalliance
scripts if you are using it:
```html
<script language="javascript" src="./pgb.js"></script>
<script language="javascript" src="./dalliance-all.js"></script>
```


The browser requires a configuration to be run, in the form of a JS object. In the PS code
it is defined as a newtype record:
{'fraction_non_alphanumeric': 0.09884778653729533, 'fraction_numerical': 0.0, 'mean_word_length': 4.518394648829432, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1230144', 'n_tokens_mistral': 516, 'n_tokens_neox': 480, 'n_words': 239}