-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathannotation_example.yaml
69 lines (53 loc) · 1.21 KB
/
annotation_example.yaml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
pattern:
- '*.maf'
- '*.vcf'
- '*.tsv.gz'
format: 'tsv'
delimiter: 't'
columns:
- 'by_OpenVariant'
- 'SAMPLE'
- 'MUTATION_REF'
annotation:
- type: 'static'
field: 'by_OpenVariant'
value: 'True'
- type: 'internal'
field: 'CHROMOSOME'
fieldSource:
- 'Chromosome'
- 'Chr'
- 'Chrom'
- 'Chromosome_Name'
- '#chrom'
function: "lambda c: c.upper().replace('CHR', '').replace('23', 'X').replace('24', 'Y')"
- type: 'internal'
field: 'SAMPLE'
value: '{icgc_sample_id}_{icgc_specimen_id}'
fieldSource:
- ['icgc_sample_id','icgc_specimen_id']
- type: 'filename'
field: 'DATASET'
function: 'lambda x: "{}".format(x.lower()[:-4])'
regex: '[a-zA-Z0-9]*.'
- type: 'dirname'
field: 'PROJECT'
function: 'lambda x: "{}".format(x.lower())'
regex: '(*.)'
- type: 'mapping'
field: 'MUTATION_REF'
fieldSource:
- 'MutationID'
- 'id'
- 'Mutation_Id'
fieldMapping: 'MUTATION_ID'
fileMapping: 'metadata_mutation.tsv'
fieldValue: 'REFERENCE'
- type: 'plugin'
plugin: 'alteration_type'
field: 'ALT_TYPE'
exclude:
- field: 'DATASET'
value: 'laml'
- field: 'DATASET'
value: 'ucs'