> For the complete documentation index, see [llms.txt](https://gitbook.bergelsonlab.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.bergelsonlab.com/data-pipeline/basic-levels/global-basic-levels.md).

# (legacy) global

Information about why and how to get a global basic level column onto all\_basiclevel

{% hint style="warning" %}
DO NOT USE! The "all\_basiclevel" table now already contains global basic levels.
{% endhint %}

## Why do I need a global basic level?

global\_bl will help you organize object words across files. Where the old basic\_level was file-dependent and governed by many very specific rules, global\_bl is intended to be a straightforward mapping between object words and the dictionary versions of those words. global\_bl collapses across words like "dog" and "doggy", making a single category for both of those word types.

## Where can I get a spreadsheet with global basic levels?

The best place to get it is at the following path:

```
Seedlings/Scripts_and_Apps/Github/seedlings/global_bl/data/all_bl_global.feather
```

{% hint style="warning" %}
At the moment, all\_bl\_global will always provide you with the data from April 3, 2019. If a new word that was not in SEEDLingS before gets added to all\_basiclevel, the script won't work as it's supposed to anymore and Charlotte will have to go in and make a new global\_bl for that word. As such, this is the stopgap measure. all\_bl\_global will have to be manually updated on a regular basis, but this should work until the RAs complete their cleaning.
{% endhint %}

## What do I do if I find a global\_bl that I think is wrong?

It's possible there are issues with the current global\_bl system. You can either log a complaint on the github or email Charlotte (<charlotte.moore@duke.edu>) with any issues you find. Please the annotid of the offending entry in your complaint so that I can find it easily.

## How do I generate global\_bl on my local computer?

Currently, the way you do this is by running a script. A function in blabr that does this instead is coming soon. The script takes a minute to run, but the results are primo.

1. Clone the [git repository](https://github.com/BergelsonLab/global_bl).
2. Open global\_bl.Rproj.
3. Run the script "global\_bl\_function.R" from start to finish. The entire thing.
4. Your final product should be a single data frame called all\_bl\_global.
5. In order to get this spreadsheet into another R project, you'll have to write it out and then reopen it in that other project. This is temporary.

<details>

<summary>Page Status: needs updating</summary>

Status details: Duke-related keywords found on the page.

Last updated by ?? on ??/??/??.

</details>
