-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added first query to scenario 4 (HAMLET data)
- Loading branch information
Showing
6 changed files
with
186 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
PREFIX ex: <https://example.org/> | ||
PREFIX obo: <http://purl.obolibrary.org/obo/> | ||
PREFIX sio: <http://semanticscience.org/resource/> | ||
PREFIX dcterms: <http://purl.org/dc/terms/> | ||
|
||
SELECT ?geneid ?genesymbolvalue | ||
WHERE { | ||
# Find phenopacket with given ID | ||
?phenopacket a obo:NCIT_C79269 ; | ||
sio:SIO_000228 ?role . | ||
?id sio:SIO_000020 ?role ; | ||
sio:SIO_000300 "new-reference-files" . | ||
|
||
# Find all genomic interpretations related to given phenopacket ID | ||
?phenopacket sio:SIO_001403 ?interpr . | ||
?interpr a obo:NCIT_C41255 ; | ||
sio:SIO_001403 ?diagnosis . | ||
?diagnosis sio:SIO_001403 ?genomicinterpr . | ||
?genomicinterpr a obo:SO_0001026 . | ||
|
||
# Find the genes that are relevant to the genomic interpretations | ||
?genomicinterpr sio:SIO_001403 ?varinterpr . | ||
?varinterpr a obo:SO_0001060 ; | ||
sio:SIO_001403 ?vardescr . | ||
?vardescr a obo:NCIT_C97927 ; | ||
sio:SIO_001403 ?genedescr . | ||
?genedescr a obo:NCIT_C16612 ; | ||
dcterms:identifier ?geneid ; | ||
sio:SIO_000008 ?genesymbol . | ||
?genesymbol sio:SIO_000300 ?genesymbolvalue | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,6 @@ chapters: | |
- file: scenario1 | ||
- file: scenario2 | ||
- file: scenario3 | ||
- file: hamlet | ||
- file: scenario4 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
jupyter-book | ||
matplotlib | ||
numpy | ||
rdflib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
title: Scenario 4 - Genetic Analysis on AML | ||
--- | ||
|
||
# Scenario 4: Genetic Analysis on AML. | ||
|
||
## Cell Line Derived from a Patient with AML | ||
|
||
A researcher is interested in the diversity and prevalence of genetic aberrations that cause AML in patients. A cell line has been derived from a patient with acute myeloid leukemia (AML). In order to acquire data that can be used for genetic analysis on this cell line, whole transcriptome RNA sequencing was performed of which the results have been used as input of the HAMLET pipeline. The HAMLET pipeline enables simultaneous detection of genetic mutations resulting in a phenopacket dataset that stores genetic as well as phenotypic information. | ||
|
||
--- | ||
|
||
## Research Questions | ||
|
||
### Question 1: Gene Mutation Prevalence | ||
|
||
Have patients been observed with variants in the same gene and the same symptoms? | ||
|
||
To answer this question, first the genes are found in which at least one mutation is present given the phenopacket of the AML cell line: | ||
|
||
```{literalinclude} SPARQL/scenario_4/question1_a.rq | ||
:language: sparql | ||
``` | ||
|
||
```{glue} scenario4_genes | ||
:doc: hamlet_notebook.ipynb | ||
``` | ||
|
||
--- |