Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #127 - update examples #144

Merged
merged 7 commits into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Try to use the following format:
## [unreleased]
### Fixed
- The optional fields Source and Version are allowed in the VCF header([#106](https://github.com/Clinical-Genomics/genmod/pull/106))

- Update annotation examaples ([#144](https://github.com/Clinical-Genomics/genmod/pull/144))
dnil marked this conversation as resolved.
Show resolved Hide resolved

## [3.9]
- Fixed wrong models when chromosome X was named `chrX` and not `X` ([#135](https://github.com/Clinical-Genomics/genmod/pull/135))
Expand Down
30 changes: 17 additions & 13 deletions examples/readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Examples for GENMOD #
# Examples for GENMOD

These are some example files for getting to know **genmod** and the possible alternatives.
There are three test families
Expand All @@ -10,35 +10,39 @@ There are three test families
There are annotation files included in the distribution of **genmod** that are made from the [latest](ftp://hgdownload.cse.ucsc.edu/goldenPath/hg19/database/refGene.txt.gz) refGene dataset. These will be used as default if no other annotation is given.
If the user want to build own annotations please use **genmod build_annotation**.

##Annotate variants for Recessive Family##
## Annotate variants for Recessive Family

```
genmod annotate examples/test_vcf.vcf -f examples/recessive_trio.ped -o examples/test_vcf_recessive_annotated.vcf
genmod annotate -o examples/test_vcf_annotated.vcf --annotate_regions examples/test_vcf.vcf
genmod models -f examples/recessive_trio.ped -o examples/test_vcf_recessive_models_annotated.vcf examples/test_vcf_annotated.vcf
```
The vcf file have a couple of variants made up so it will be easy to understand how the genetic inheritance patterns are annotated.

With the basic command listed above the output should look like the variants in ```examples/test_vcf_recessive_annotated.vcf```

1. First variant is a classic Autosomal Recessive case, each parent are carriers and the affected child is homozygous alternative.
2. This variant is annotated as ``AR_hom:AR_hom_dn`` since we miss information from one parent.
3. Here we have a de novo case, notice that we will only annotate this with ``AR_hom_dn`` for more effective sorting in a downstream analysis.
2. This variant is annotated as `AR_hom:AR_hom_dn` since we miss information from one parent.
3. Here we have a de novo case, notice that we will only annotate this with `AR_hom_dn` for more effective sorting in a downstream analysis.
4. Next two variants form a compound pair, that is each parent carry one variant each while the affected child have both. This implies that both variants are exonic(or in canonical splice region) and belong to the same gene.
5. At position 947378 we see an example of a Autosoma Dominant de novo variant.
6. The two following variants could form a compound pair since they are heterozygous in the affected child but they are not exonic. If the flag ``-g/--whole_gene`` is used these two will be annotated as compounds.
5. At position 947378 we see an example of a Autosomal Dominant *de novo* variant.
6. The two following variants could form a compound pair since they are heterozygous in the affected child but they are not exonic. If the flag `-g/--whole_gene` is used these two will be annotated as compounds.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is -g/--whole_gene still relevant or deprecated?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It indeed looks beyond deprecated: completely unused nowadays.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I can tell, it was removed functionally with #77.

The following variants are to show how the ``-strict`` flag affects the analysis. When in strict mode we will only annotate a variant to follow a pattern if there is *proof* in the data. So if there are no calls in some individuals it will not follow any pattern.
The following variants are to show how the `--strict` flag affects the analysis. When in strict mode we will only annotate a variant to follow a pattern if there is *proof* in the data. So if there are no calls in some individuals it will not follow any pattern.


##Annotate variants for Dominant Family##
## Annotate variants for Dominant Family
```
genmod annotate test_data/test_vcf.vcf -f test_data/dominant_trio.ped -o examples/test_vcf_dominant_annotated.vcf
genmod annotate -o examples/test_vcf_annotated.vcf --annotate_regions examples/test_vcf.vcf
genmod models -f examples/dominant_trio.ped -o examples/test_vcf_dominant_annotated.vcf examples/test_vcf_annotated.vcf

```
We can now see how the conditions change when one of the parents are affected. For example the recessive pattern for the first variant is not followed since all affected needs to be homozygote alternative if the variant should follow the Autosomal Recessive pattern.


##Annotate variants for Multiple Families##
## Annotate variants for Multiple Families
```
genmod annotate test_data/test_vcf.vcf -f test_data/multi_family.ped -o examples/test_vcf_multi_annotated.vcf
genmod annotate -o examples/test_vcf_annotated.vcf --annotate_regions examples/test_vcf.vcf
genmod models -f examples/multi_family.ped -o examples/test_vcf_multi_annotated.vcf examples/test_vcf_annotated.vcf
```
We can now see how the conditions change when one of the parents are affected. For example the recessive pattern for the first variant is not followed since all affected needs to be homozygote alternative if the variant should follow the Autosomal Recessive pattern.

Expand All @@ -47,7 +51,7 @@ We can now see how the conditions change when one of the parents are affected. F

This is another example of how one can annotate with genmod:
```
genmod annotate examples/test_vcf.vcf --cadd_file examples/small_CADD.tsv.gz --thousand_g examples/small_1000G.vcf.gz
genmod annotate --cadd_file examples/small_CADD.tsv.gz --thousand_g examples/small_1000G.vcf.gz examples/test_vcf.vcf
```

Please post issues on http://github.com/Clinical-Genomics/genmod in case of any problems.
Loading