-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathcgcFileNameCount.rq
30 lines (22 loc) · 1.26 KB
/
cgcFileNameCount.rq
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX tcga: <https://www.sbgenomics.com/ontologies/2014/11/tcga#>
SELECT (count(?file_name) as ?N_files) WHERE
{
?file a tcga:File .
?file rdfs:label ?file_name .
?file tcga:hasSample ?sample .
?sample tcga:hasSampleType ?st .
?st rdfs:label ?sample_type_label
filter(?sample_type_label='Primary Tumor' || ?sample_type_label='Additional - New Primary' || ?sample_type_label='Additional Metastatic' || ?sample_type_label='Metastatic' || ?sample_type_label='Primary Blood Derived Cancer - Peripheral Blood' || ?sample_type_label='Recurrent Tumor' || ?sample_type_label='Blood Derived Normal' || ?sample_type_label='Bone Marrow Normal' || ?sample_type_label='Buccal Cell Normal' || ?sample_type_label='Solid Tissue Normal')
?file tcga:hasExperimentalStrategy ?xs .
?xs rdfs:label ?experimental_strategy_label .
filter(?experimental_strategy_label='RNA-Seq' || ?experimental_strategy_label='WGS') .
?file tcga:hasDataType ?type .
?type rdfs:label ?data_type_label .
filter(?data_type_label='Raw sequencing data') .
?file tcga:hasDataFormat ?format .
?format rdfs:label ?data_format_label .
filter(?data_format_label='BAM') .
?file a tcga:File .
?file tcga:hasSize ?file_size .
}