> For the complete documentation index, see [llms.txt](https://docs.labatlas.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.labatlas.com/using-lab-atlas/studies/assays.md).

# Creating & Updating Assays

Creating a new assay, planning one for later, and editing an assay's details

An assay is a specific piece of work inside a study: an experiment, a run, or an analysis. Every assay belongs to one study and takes its code from it. For example, an assay in study `PRJ-101` gets a code like `PRJ-101-01`.

## Creating an assay

You can start a new assay from several places:

* A study's page: **New Assay** in the **Actions** menu, **Add Assay** on the **Assays** tab, or **New Assay** on the **Assays** card of the **Overview** tab. While the study is In Planning, the card's button reads **Plan an Assay**.
* The **Assays** page: click **New Assay**. Because every assay lives inside a study, Lab Atlas first asks *Which study is this assay for?* Find and pick the study, then click **Continue to assay form**. Only studies you can contribute to are listed, and drafts aren't offered.
* The [Planning](https://docs.labatlas.com/using-lab-atlas/planning.md) page, where you can add a planned assay straight into the tree with **+ Assay**.

The **New Assay** form is split into numbered sections. Only a few fields are required, and which ones depends on how you save (see [What you need to fill in](#what-you-need-to-fill-in)).

On wide screens, a summary beside the form shows what saving will do: the assay's code and type, where its folder will go, which integrations it will use, who's on it, and how many tasks it has.

### 1. Details

* **Name**: A brief but descriptive name for the assay, up to 128 characters. The name and the assay's code are used to label its storage folder, notebook entries, and other records Lab Atlas creates.
* **Study**: The study the assay belongs to. It's set by where you started, and can't be changed here. The form shows the code the assay will get, for example *This assay's code will be PRJ-101-01.*
* **Assay Type**: The [assay type](https://docs.labatlas.com/managing-your-organization/assay-types.md) to use. If the type has any assay fields or default tasks, they're added further down the form. See [Choosing an assay type](#choosing-an-assay-type).
* **Description**: Describe your assay's purpose and goal in a few sentences.
* **Keywords**: Tags that make the assay easier to find and filter later. Choose from the keywords already used in your organization, or create new ones as you type.

An assay's keywords are its own. They aren't inherited from the parent study, and adding one here doesn't change the study. Keywords are shared across the organization, so reusing an existing keyword rather than coining a near-duplicate is what makes them useful for grouping related work.

#### Choosing an assay type

When you pick a type, its assay fields and default tasks are copied into the form.

If you've already added your own tasks or filled in field values, changing the type asks you first: *Switch to \[type]?* The current type's field values are cleared either way. Then choose:

* **Use \[type]'s tasks**: replaces your tasks with the new type's default tasks.
* **Keep my tasks**: keeps the tasks you have, and only changes the fields.
* **Don't change the type**: leaves everything as it was.

You can save a draft or a planned assay without a type, but it needs one before it can start.

### 2. When does it start?

Choose one of the two cards:

* **Start now** creates the assay's storage folder and any linked notebooks as soon as you save. The assay becomes **Active**.
* **Plan for later** saves the plan only. The assay gets its code and the status **In Planning**, but storage and notebooks aren't set up until it's [activated](https://docs.labatlas.com/using-lab-atlas/planning/activating-records.md).

If the study hasn't started yet, **Start now** is unavailable and the form explains why. If the study is still a draft, the form says *\[study] is a draft, so this assay is saved as a draft too. You can plan or start it once the study is.*

The date fields change with your choice:

* With **Start now**, set the **Start Date** (today by default, so backdate it if work has already begun) and, optionally, the **Expected End**. If you're recording an assay that has already finished, click **It has already finished** to add its **Actual End Date**.
* With **Plan for later**, set the **Projected Start** and, optionally, the **Projected End**.

An assay's projected dates must fit inside its study's. If they don't, the form tells you how the study's dates will be extended when you save. See [Dates roll up](https://docs.labatlas.com/using-lab-atlas/planning.md#dates-roll-up).

### 3. People

* **Owner**: The person accountable for the assay. It defaults to you. The owner must be a member of the project, and is always a member of the assay. See [Owners](https://docs.labatlas.com/using-lab-atlas/planning.md#owners).
* **Other Members**: Everyone else who will work on the assay. Anyone on the project can be added. Members are also added as authors on any ELN entry Lab Atlas creates for the assay.

### 4. Assay fields

If the assay type defines **assay fields**, they appear in a section named after the type, such as **ELISA Fields**. Fill them in to record the details every assay of that type should capture. Required fields are marked with an asterisk (\*).

On a planned assay, required fields are only needed to start the assay, not to save it, and are marked that way. If a Choice field's options have changed since a value was recorded, the form asks you to pick one of the current options before saving.

<figure><img src="https://2057412998-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FglJC7nRAfEL7RcemHr0z%2Fuploads%2FzMZo9DQXlQ1KvOrorqeH%2Fimage.png?alt=media&amp;token=68dd7de1-c997-4ce6-8be0-f61843c3495a" alt=""><figcaption><p>Assay fields on the assay form</p></figcaption></figure>

### 5. Storage & integrations

This section shows where the assay's files will live and which notebooks it gets. The assay's folder is always created inside its study's folder, and the form shows the path it will have.

Depending on the integrations your organization has connected, you'll see a card for each of the following. Switch a card on to use it:

* **Benchling notebook**: Creates a folder and summary entry in the study's Benchling notebook. If the study has a Benchling notebook folder, this is switched on for you.
* **CDD Vault notebook**: Creates a notebook entry in the project's CDD Vault. If the project has a CDD Vault folder, this is switched on for you.
* **Git repository**: Creates a repository for your source code in a GitLab group.

For a planned assay, nothing in this section is created until the assay is activated, so the choices are folded away. The panel explains what will happen by default: the folder goes inside the study's folder, the assay gets a notebook entry in each ELN the study links to, and no repository is linked. Click **Choose now** to pick different settings, or **Use defaults** to go back to the defaults.

### 6. External Collaborators

If your assay is being performed externally or with an external party, such as a CRO, link that party here. Lab Atlas can also generate **external codes**. You can give these to collaborators in place of the internal assay code, so you don't expose any sensitive information that might be embedded in it.

1. Choose the collaborator from **Registered Organizations**.
2. If the collaborator has already given you a code for the assay, enter it in **Code**. If not, leave it blank and Lab Atlas will generate one when you save, using the organization's code as a prefix.

<figure><img src="https://2057412998-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FglJC7nRAfEL7RcemHr0z%2Fuploads%2FsaKuvP7aEfWh3LPHi35A%2Fimage.png?alt=media&amp;token=70240662-5f3c-47a3-948b-94572f2bae91" alt="" width="563"><figcaption><p>Linking an external collaborator</p></figcaption></figure>

If the collaborator isn't listed, click **Don't see your organization? Add it here.** to register a new one. Its **Organization Code** is the prefix used for generated external codes.

<figure><img src="https://2057412998-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FglJC7nRAfEL7RcemHr0z%2Fuploads%2FZKWGBJWL2wiprapGO1xF%2Fimage.png?alt=media&amp;token=2040bdce-1038-409c-a918-f13f9a40c0e4" alt="" width="563"><figcaption><p>Registering a new external organization</p></figcaption></figure>

### 7. Tasks

Tasks are TO-DO style work items you can assign to team members. If you picked an assay type with default tasks, they're already listed here. To add another, type what needs to be done and press **Enter**. Expand a task to set its due date, assignee, and description. Assignees are chosen from the project's members.

A task can also have **Results fields**: values the assignee records when they finish, such as a reading or a batch number. See [Tasks that capture data](https://docs.labatlas.com/using-lab-atlas/tasks.md#tasks-that-capture-data) for the field types and how they're used once the assay exists.

### Saving the assay

The buttons at the bottom of the form are:

* **Cancel**: leaves the form without saving.
* **Save as draft**: saves the assay as a private [Draft](https://docs.labatlas.com/using-lab-atlas/planning.md#how-planned-work-moves-forward). Only you can see it, and it has no code yet.
* **Create Assay** (with **Start now**) or **Save as In Planning** (with **Plan for later**).

If the study is a draft, only **Save as draft** is offered.

#### What you need to fill in

| Button                  | Required fields                                                                 |
| ----------------------- | ------------------------------------------------------------------------------- |
| **Save as draft**       | Name                                                                            |
| **Save as In Planning** | Name, Owner, and Projected Start                                                |
| **Create Assay**        | Name, Assay Type, Description, Start Date, and the type's required assay fields |

If anything is missing or invalid when you save, a summary at the bottom of the form lists each problem, for example *2 fields need attention before this assay can be saved*. Click an item to jump to the field that needs fixing.

## Updating an assay

To change an assay, open it and choose **Edit** from the **Actions** menu. You need to be able to contribute to the assay's project, and the assay must not be [locked](https://docs.labatlas.com/using-lab-atlas/locking-records.md).

A **Draft** has no page of its own yet, so opening a draft takes you straight to its edit form.

The edit form has the same sections as the New Assay form, with a few differences:

* The **Study** can't be changed. To move a started assay, use **Move to another study** in the assay's **Actions** menu.
* The **Assay Type** can only be changed while the assay is planned. Once it has started, the form says *The type is fixed once the assay has started.*
* Only the current owner or an Organization Admin can change the **Owner**.
* **Storage & integrations** only appears while the assay is planned, or if its activation failed. Once an assay has started, its folder, notebooks, and repositories already exist. Manage them from the assay's page instead: the **Files** tab, the **ELN** tab, and the Git repository card on the **Overview** tab.

The buttons at the bottom of the form depend on the assay's status:

| Status                     | Buttons                                                                                                                                           |
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Draft**                  | **Save**, and **Move to In Planning** if you created the draft. **Delete draft** is also shown to the draft's creator and to Organization Admins. |
| **In Planning**            | **Save**, and **Save and activate**. If anything is still needed before activation, the assay is saved and the missing fields are listed.         |
| Started (Active and later) | **Save Assay**                                                                                                                                    |

**Save and activate** is unavailable until the assay's study has been activated. See [Activating Records](https://docs.labatlas.com/using-lab-atlas/planning/activating-records.md).

## The assay page

The top of an assay's page shows its name, then its **Code**, **Status**, **Project**, **Type**, and **Owner**. Click the status to change it. A locked assay also shows a lock icon and which record holds the lock. If you aren't on the project team, a **View only** badge is shown.

The **Actions** menu has:

* **Activate**, for an assay that's In Planning.
* **Move to another study**, for an assay that has started.
* **Edit**.
* **Lock** or **Unlock**. See [Locking Records](https://docs.labatlas.com/using-lab-atlas/locking-records.md).
* **Archive**, which hides the assay without deleting it. Archived assays can be restored later.

The page has these tabs:

* **Overview**: the assay's field values, storage folder, ELN entries, notes, tasks, Git repository, external collaborators, and links. For an assay that's In Planning, its [Activation settings](https://docs.labatlas.com/using-lab-atlas/planning/activating-records.md#activation-settings) are shown here too. A panel beside it, **About this Assay**, shows the description, aliases, keywords, team, and dates.
* **Tasks**: the assay's [tasks](https://docs.labatlas.com/using-lab-atlas/tasks.md).
* **Files**: the assay's storage folder, once it has one.
* **Notes**
* **Activity**: everything that has happened to the assay. See [Activity](https://docs.labatlas.com/using-lab-atlas/activity.md).
* **ELN**: the assay's notebook entries, when it has any.

## Finding assays

Click **Assays** in the sidebar to see every assay you have access to. Use the toolbar to narrow the list:

* **Search assays** by name, code, study, or type.
* The status buttons: **All**, **Active**, **Planned**, **Needs attention**, **On hold**, and **Complete**.
* The **Project** and **Type** filters.
* **Filter**, which opens more options: owner, only assays with an external collaborator, and individual statuses.

Switch on **Group by study** to group the list under each assay's study. To import assays in bulk, use the arrow next to **New Assay** and choose **Import Assays**.

## For administrators

* **Assay types.** The assay types offered on the form, and their fields and default tasks, are managed on the [Assay Types](https://docs.labatlas.com/managing-your-organization/assay-types.md) page.
* **Integrations decide what the form offers.** The **Benchling notebook**, **CDD Vault notebook**, and **Git repository** cards only appear when those integrations are connected for your organization.
* **Owners.** Organization Admins can change any assay's owner.
* **Drafts.** Drafts are private to their creator. An Organization Admin can find other members' drafts with the **Include other members' drafts** switch on the **Assays** page, and can delete them. Only a draft's creator can move it to In Planning.
