Skip to content

Commit

Permalink
day progress
Browse files Browse the repository at this point in the history
  • Loading branch information
manulera committed Aug 30, 2023
1 parent 1f5a30a commit ff02ff2
Show file tree
Hide file tree
Showing 18 changed files with 393 additions and 35 deletions.
Binary file added docs/assets/diploid_genotype.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/gi_add.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/assets/gi_constrains_website.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/gi_pick_phenotype.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
175 changes: 175 additions & 0 deletions docs/describing_alleles.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
---
hide:
- toc
---

## Allele description rules

!!! warning "These are rules for allele descriptions, not names!"

| Allele type | Example |
| -------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| amino acid insertion | A858AMKGYP (insertion of MKGYP after A858, note A before and after number) |
| amino acid substitution(s) | K132A or F256A,F310A |
| amino acid insertion and substitution | A858AMKGYP,F124D |
| amino acid insertion and deletion | A858AMKGYP,100-200,P500* |
| partial deletion and amino acid change | 100-200,F124D,P500* |
| partial deletion, amino acid | Specify deleted residues - eg. 100-200 OR 10-20,40-50. Use P500* for nonsense mutation |
| nucleotide insertion | C132CAATTT (insertion of AATTT after C132, note C before and after number) |
| nucleotide substitution(s) | A25G, OR A(-25)G (for residues upstream of ATG -protein coding- or transcription start -RNA genes-) |
| partial deletion, nucleotide | Specify deleted residues - eg. 100-200 OR (-20)-(-30) (for residues upstream of ATG -protein coding- or transcription start -RNA genes-) |
| partial deletion and nucleotide change | 100-200,A124T,C128G (for residues upstream of ATG -protein coding- or transcription start -RNA genes- use negative numbers in parenthesis) |
| nucleotide insertion and substitution | T858TAAGA,T(-124)A (for residues upstream of ATG -protein coding- or transcription start -RNA genes- use negative numbers in parenthesis) |

## Allele naming rules

!!! warning "These are rules for allele names, not descriptions!"

<table>
<tbody>
<tr>
<td colspan="2">
<p><strong>Variant type</strong></p>
</td>
<td>
<p><strong>Example</strong></p>
</td>
</tr>
<tr>
<td colspan="2">
<p>Wild type</p>
</td>
<td>
<p><em>ase1+</em></p>
</td>
</tr>
<tr>
<td colspan="2">
<p>Knockout / deletion</p>
</td>
<td>
<p><em>ase1&Delta;</em></p>
</td>
</tr>
<tr>
<td rowspan="2">
<p>Partial deletion</p>
</td>
<td>
<p>Indicate what&rsquo;s left</p>
</td>
<td>
<p><em>ase1(1-35)</em></p>
<p><em>ase1(1-35, 40-700)</em></p>
</td>
</tr>
<tr>
<td>
<p>Indicate what&rsquo;s missing</p>
</td>
<td>
<p><em>ase1&Delta;(114-120)</em></p>
<p><em>ase1&Delta;(114-120,150-200)</em></p>
</td>
</tr>
<tr>
<td colspan="2">
<p>Residue insertion</p>
</td>
<td>
<p><em>ase1-P114PVPAL</em></p>
</td>
</tr>
<tr>
<td rowspan="2">
<p>Substitution or deletion-insertion</p>
</td>
<td>
<p>Single residues</p>
</td>
<td>
<p><em>ase1-P114A,Q117A</em></p>
<p><em>ase1-P114*</em></p>
</td>
</tr>
<tr>
<td>
<p>Consecutive residues</p>
</td>
<td>
<p><em>ase1-PLI114AAA</em></p>
<p><em>ase1-PLI114LAVKK</em></p>
</td>
</tr>
<tr>
<td colspan="2">
<p>Combinations of the above</p>
</td>
<td>
<p><em>ase1&Delta;(10-20)-P114A,Q117A</em></p>
</td>
</tr>
<tr>
<td colspan="2">
<p>Forward genetics, variant unknown</p>
</td>
<td>
<p><em>ase1-35 </em>(must be unique)</p>
</td>
</tr>
<tr>
<td rowspan="6">
<p>CTD</p>
</td>
<td>
<p>All repeats mutated</p>
</td>
<td>
<p><em>rpb1-CTD-Y1F</em></p>
</td>
</tr>
<tr>
<td>
<p>Some repeats mutated</p>
</td>
<td>
<p><em>rpb1-CTD-Y1F(r1-r12)</em></p>
</td>
</tr>
<tr>
<td>
<p>Some repeats deleted</p>
</td>
<td>
<p><em>rpb1-CTD-&Delta;(r11-r29)</em></p>
</td>
</tr>
<tr>
<td>
<p>Motifs mutated every 2 repeats, from repeat 1 to 29.</p>
</td>
<td>
<p><em>rpb1-CTD-Y1F(r1-r29-2)</em></p>
</td>
</tr>
<tr>
<td>
<p>Combinations of the above</p>
</td>
<td>
<p><em>rpb1-CTD-S5A(r1-r12)&Delta;(r13-r29)</em></p>
</td>
</tr>
<tr>
<td>
<p>CTD and non-CTD mutations</p>
</td>
<td>
<p><em>rpb1-N494D-CTD-&Delta;(r11-r29)</em></p>
</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>

<!-- TODO add paper reference -->
28 changes: 28 additions & 0 deletions docs/faqs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

## Phenotype annotations

### How do I indicate that a mutation or deletion is viable?

Annotate a genotype including that allele to `viable vegetative cell population`. Viability can depend on conditions and other alleles present on the genotype. See [phenotypes](./phenotypes.md)

### How do I indicate that a mutation or deletion is lethal?

Annotate a genotype including that allele to `inviable vegetative cell population`. Lethality can depend on conditions and other alleles present on the genotype. See [phenotypes](./phenotypes.md)

### How do I indicate that an allele is thermosensitive?

Annotate a genotype including that allele to `inviable vegetative cell population`, including `high temperature` or `low temperature` as a condition. See [phenotypes](./phenotypes.md)

## Genotype management

### What's the difference between "Wild type product level" and "Not assayed"?

Historically, `Wild type product level` and `Not assayed` have been used interchangeably when a non-wild type allele is expressed from the endogenous locus. We recommend `Not assayed` if you have not measured expression. See [Genotype management](./genotype_management.md)

### What to do when control strains over-express the wild-type allele, or express it from a plasmid?

PomBase does not capture the difference between strains expressing an allele from a plasmid or the native locus in phenotype annotations. Similarly, we do not have a way to capture the fact that the control of an experiments is over-expressing the wild-type allele. Therefore, if both the wild-type (control) and mutant allele are over-expressed / knocked-down, ???. See [Genotype management](./genotype_management.md)

### What if the wild-type copy is still present in a mutant strain?

Multi-loci phenotype can be used to indicate that the wild-type allele is still present in a strain expressing an allele of that gene. For example, a strain that bears both the wild type _cdc25_ and the mutant allele _cdc25-22_. For this purpose, you can create a wild-type allele with expression level `Wild type product level`. See [Genotype management](./genotype_management.md)
24 changes: 0 additions & 24 deletions docs/genes_alleles_genotypes.md

This file was deleted.

33 changes: 30 additions & 3 deletions docs/genetic_interaction.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ hide:
- toc
---

!!! info "Before starting"
* To add genetic interactions, you need to add phenotypes first: see [how to add phenotypes](./phenotypes.md).
* Canto supports 9 types of genetic interactions depending on the phenotypes and genotypes involved, see [PomBase genetic interaction documentation](https://www.pombase.org/documentation/genetic-and-physical-interactions).
!!! info "To add genetic interactions, you need to add phenotypes first: see [how to add phenotypes](./phenotypes.md)."

## Video summary

Expand All @@ -15,3 +13,32 @@ hide:
</div>
</div>

## Adding genetic interactions

??? warning "Do you know about all types of genetic interactions?"

Canto supports 9 types of genetic interactions depending on the phenotypes and genotypes involved, see [PomBase genetic interaction documentation](https://www.pombase.org/documentation/genetic-and-physical-interactions).

The language often used in publications does not match the naming of genetic interactions. For example, in publications we can find "double deletion of gene X and Y rescues the defects cellular morphology caused by deletion of gene Y". However, for BioGRID this is a phenotypic suppression not a rescue, since rescue is reserved for lethality or growth defect.

Below is a decision making tree to determine the type of genetic interaction from the phenotypes of the single and double mutant. "Interacting allele" refers to the allele that is not present in the single mutant:

![Decision making for genetic interactions](assets/gi_constrains_website.svg)

To start a genetic interaction annotation, you need a multi-locus phenotype that involves two genes:

* Click `add...` in the Genotype field of an existing multi-locus phenotype annotation.
<div markdown style="max-width: 300px">
![](assets/gi_add.png)
</div>
* This opens a window that lets you delete existing genetic interactions, or add new ones.
* To delete a genetic interaction, click on the red cross on the right of the annotation.
* To create a new genetic interaction, click on `Add interaction...`.
* Select the annotation type and click `OK`.
* For some interactions, you will be asked to indicate the directionality
* Then, you may be asked to link the genetic interaction to the single-locus phenotype, do so by clicking on the white box on the right of the listed annotations.
<div markdown style="max-width: 400px">
![](assets/gi_pick_phenotype.png)
</div>
* If that is the case, and you have not annotated the single locus phenotype yet, you can do it directly from the Genetic Interaction interface by clicking on `Add phenotype ...`.

58 changes: 58 additions & 0 deletions docs/genotype_management.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
hide:
- toc
---

??? info "Did you forget to add genes to the session or you want to remove some?"
In the main menu, click on `Edit gene list` on the right side of the interface.

* To remove genes, tick the boxes on the right, then click `Remove selected`. You can only delete genes that have not been used for annotations.
* To add genes, click `Add more genes from ...`.
* You can add multiple genes separated by any spacer (space, commas, line breaks).
* You can refer to genes by their systematic id (SPAC3G9.12), primary name (peg1) or a synonym (cls1).
* If a gene name is also the synonym of another gene (e.g. psu1), you will be asked to provide a primary name for that gene.

## Video summary

<div class="video-sizer">
<div class="video-wrapper">
<iframe src="https://www.youtube.com/embed/KY7ev8IEG00" frameborder="0" allowfullscreen></iframe>
</div>
</div>

## Creating genotypes

On the left side of the session page, click on `Genotype management`. This will take you to a screen where you can see all the genes you have added to the session.

### Creating single-locus genotypes

* To create a genotype with a deletion allele, click on `Deletion`.
* To create a genotype where the expression level of the wild-type allele is altered, click on `Other Genotype` and select `wild type` as `allele type`. Then select the expression level.
* For others, click on `Other Genotype`, then:
* First, check if the allele you want to use already exist by writing its name on the `Allele name` text box. If you find it, click on it, and the allele details will be imported from PomBase.
* Otherwise, create a new allele:
* Give it the name that it has in the publication. Ideally, the name should follow [our guidelines](./describing_alleles.md#allele-naming-rules).
* Select the type of allele, and add an allele description following the displayed example. See [all description examples](./describing_alleles.md#allele-description-rules).
* Finally, select the expression level and click `OK`.

### Creating diploid loci

* If you want to make a diploid genotype with two different alleles, they must exist as separate single-locus genotypes.
* Start from a haploid single-locus genotype that contains one of the desired alleles, and tick the box on its left.
<div markdown style="max-width: 400px">
![](assets/diploid_genotype.png)
</div>
* Then, click on `Create diploid locus`, there you can choose to create either:
* An homozygous locus with the starting allele.
* An heterozygous locus with the starting allele and the wild-type.
* An heterozygous locus with the starting allele and another allele from the session (choose from the dropdown).
* Then click `OK`.

### Creating multi-locus genotypes

* Select all single-locus genotypes that you want to combine in a multi-locus genotype, by ticking the boxes on their left.
<div markdown style="max-width: 400px">
![](assets/diploid_genotype.png)
</div>
* Click the button `Combine selected genotypes`.
* You can also create diploid multi-locus genotypes by combining diploid single-locus genotypes.
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ This site contains a step-by-step video and text guide for curating a paper usin
* The tutorials in this page use Canto advanced mode, it can be activated as shown below:

<img src="assets/activate_advanced_mode.png" alt="activating advanced mode by clicking on the top right gear icon">

* If you are unfamiliar with what annotation means, and how ontology terms are used for this, visit our [brief intro to annotation](./intro_annotation.md).

## Creating annotations
Expand Down
19 changes: 19 additions & 0 deletions docs/javascript/did_you_know.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// A simple script that displays a random did you know message at the footer

const allMessages = [
'Canto has ways to save time during curation, visit our <a href="/productivity">productivity page</a>.',
'You can submit high-throughput datasets of genetic and physical interactions to <a href="https://wiki.thebiogrid.org/doku.php/contribute">BioGrid</a>, and they will appear in PomBase.',
'You can submit high-throughput annotations of GO, phenotype, modification, or gene expression data, visit our <a href="https://www.pombase.org/submit-data">data submission documentation</a>.',
'You can submit sequence-linked data, and they will appear in PomBase genome browser. Visit our <a href="https://www.pombase.org/submit-data">data submission documentation</a>.'
]

const randomMessage = allMessages[Math.floor(Math.random() * allMessages.length)]

// Set the initial message

const footer = document.getElementsByClassName('md-footer-meta__inner')[0]

const message = document.createElement('p')
message.innerHTML = '<strong>Did you know?</strong> 🤔 ' + randomMessage

footer.appendChild(message)
8 changes: 5 additions & 3 deletions docs/phenotypes.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ hide:
## Making an annotation

On the `Quick Links` list, click on `Phenotype` to open a window that requires you to indicate:
****

* **Genotype:** you can choose from the genotypes added to the session from a dropdown (see [how to add genotypes](./genes_alleles_genotypes.md)). Click on the magnifying glass on the right to use a search box instead of a drop-down menu.
* **Term name:** a FYPO term describing the phenotype associated with the genotype you selected above.
* Start typing a phenotype in the search box. If you do not find the precise phenotype you are looking for, choose a broad term (e.g. abnormal spindle) that can be refined later.
Expand All @@ -34,9 +34,11 @@ On the `Quick Links` list, click on `Phenotype` to open a window that requires y
* **Catalytic activity phenotypes:** similarly, if a mutation in enzyme X affects its activity, still specify gene X in `assayed enzyme`, and if X auto-phosphorylates, indicate it in `assayed substrate`. A mutation in gene X may also affect catalytic activity of Y, then use Y in `assayed enzyme`
* **Interaction phenotypes:** Indicate always two gene products. Mutation in gene X may affect interaction of proteins Z and Y, or of protein X with Y. If a mutation affects a protein/RNA interaction with itself, add the same protein twice.
* **Assayed region extension:** depending on the phenotype, you will be able to select from either:
* **Genes:** e.g. to indicate that a mutation gene X causes "abnormal chromatin organization" in the region of gene Y, you select `assayed region or gene` with gene Y. If several genes are affected, create multiple annotations.
* **Sequence ontology term:** to indicate that the phenotype affects a type of sequence (e.g. `centromeric repeat`).
* **Genes:** e.g. to indicate that a mutation gene X causes "abnormal chromatin organization" in the region of gene Y, you select `assayed region or gene` with gene Y. If several genes are affected, create multiple annotations.
* **Sequence ontology term:** to indicate that the phenotype affects a type of sequence (e.g. `centromeric repeat`).

* **Evidence code:** the type of experiment where the phenotype was observed.
* **Conditions:** Conditions are aspects of the experimental setup that are **independent of what cells, strain, organism, etc. are used**. Type and select from the autocomplete options. Several conditions can be added, and capture the medium or temperature used, presence of chemicals, agar plates or liquid culture, etc.
* **Comment:** it's very useful for us if you indicate the figure or table where this phenotype comes from.

!!! question "These are just the basics, more info and edge cases can be found in the [FAQs](faqs.md#phenotype-annotations)"
6 changes: 5 additions & 1 deletion docs/physical_interaction.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ hide:
<div class="video-wrapper">
<iframe src="https://www.youtube.com/embed/KY7ev8IEG00" frameborder="0" allowfullscreen></iframe>
</div>
</div>
</div>

## Making an annotation

High-throughput
Loading

0 comments on commit ff02ff2

Please sign in to comment.