-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0178e40
commit fa4c17f
Showing
50 changed files
with
1,670,985 additions
and
242,722 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
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,8 +1,11 @@ | ||
import os | ||
from os import getcwd | ||
|
||
from openvariant.annotation.annotation import Annotation | ||
from openvariant.task.count import count | ||
from openvariant.task.groupby import group_by | ||
from openvariant.variant.variant import Variant | ||
|
||
annotation = Annotation('./tests/data/example.yaml') | ||
result = Variant('./tests', annotation) | ||
for r in result.read(): | ||
print(r) | ||
print(result) | ||
for g, v, _ in group_by(f'{os.getcwd()}/tests/data/dataset/', f'{os.getcwd()}/tests/data/task_test.yaml', | ||
None, key_by='DATASET', where="PROJECT >= \"SAMPLE1\"", quite=True): | ||
print(g, len(v)) |
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
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
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,4 +1,4 @@ | ||
pattern: '*.vcf.gz' | ||
pattern: 1234 | ||
recursive: false | ||
format: 'CSV' | ||
|
||
|
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion
1
tests/data/example1/example1.yaml → tests/data/dataset/dataset.yaml
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,6 +1,5 @@ | ||
pattern: | ||
- '*.maf' | ||
recursive: true | ||
format: 'tsv' | ||
|
||
annotation: | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,28 @@ | ||
pattern: | ||
- '*.maf' | ||
format: 'tsv' | ||
|
||
annotation: | ||
- type: 'static' | ||
field: 'PLATFORM' | ||
value: 'WGS' | ||
- type: 'internal' | ||
field: 'POSITION' | ||
fieldSource: | ||
- 'Position' | ||
- 'Start' | ||
- 'Start_Position' | ||
- 'Pos' | ||
- 'Chromosome_Start' | ||
- 'POS' | ||
- type: 'internal' | ||
field: 'variant' | ||
fieldSource: | ||
- 'Variant_Type' | ||
- 'Data' | ||
- type: 'filename' | ||
field: 'DATASET' | ||
function: 'lambda x: "{}".format(x.lower()[:-4])' | ||
- type: 'dirname' | ||
field: 'PROJECT' | ||
function: 'lambda x: "{}".format(x.upper())' |
File renamed without changes.
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,67 @@ | ||
pattern: | ||
- data_mutations_extended.txt | ||
format: tsv | ||
|
||
columns: | ||
- CHROMOSOME | ||
- POSITION | ||
- REF | ||
- ALT | ||
- STRAND | ||
- ALT_TYPE | ||
- PLATFORM | ||
|
||
annotation: | ||
- type: internal | ||
field: CHROMOSOME | ||
fieldSource: | ||
- Chromosome | ||
- Chr | ||
- Chrom | ||
- Chromosome_Name | ||
- '#chrom' | ||
- '#CHROM' | ||
function: 'lambda c: c.upper().replace(''CHR'', '''').replace(''23'', ''X'').replace(''24'', ''Y'')' | ||
- type: internal | ||
field: POSITION | ||
fieldSource: | ||
- Position | ||
- Start | ||
- Start_Position | ||
- Pos | ||
- Chromosome_Start | ||
- POS | ||
- type: internal | ||
field: STRAND | ||
fieldSource: | ||
- Strand | ||
- Chromosome_Strand | ||
- '' | ||
function: 'lambda s: ''-'' if s in [''-'', ''0'', ''-1''] else ''+'' if s in [''+'', ''1'', ''+1''] else ''+''' | ||
- type: internal | ||
field: REF | ||
fieldSource: | ||
- Ref | ||
- Reference_Allele | ||
- Reference | ||
- Reference_Genome_Allele | ||
- REF | ||
- type: internal | ||
field: ALT | ||
fieldSource: | ||
- Alt | ||
- Tumor_Seq_Allele2 | ||
- Variant | ||
- Alternative | ||
- Mutated_To_Allele | ||
- ALT | ||
- type: static | ||
field: PLATFORM | ||
value: WXS | ||
- type: dirname | ||
field: DATASET | ||
function: 'lambda d: "CBIOP_{{PLATFORM}}_{}".format(d.upper())' | ||
- type: plugin | ||
plugin: alteration_type | ||
field: ALT_TYPE | ||
|
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,4 +1,4 @@ | ||
pattern: | ||
patternexample1: | ||
- '*.maf' | ||
- '*.vcf.gz' | ||
recursive: false | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.