-
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
1848574
commit e14974a
Showing
51 changed files
with
112 additions
and
127 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,2 @@ | ||
recursive-exclude tests * | ||
recursive-exclude plugins * |
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 |
---|---|---|
|
@@ -5,5 +5,5 @@ | |
Run test: | ||
|
||
```bash | ||
python3 -m unittest discover -s test | ||
python3 -m unittest discover -s tests | ||
``` |
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
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
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
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
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
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
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,9 +1,9 @@ | ||
from liftover import get_lifter | ||
#from liftover import get_lifter | ||
|
||
|
||
def liftover(text: str) -> str: | ||
converter = get_lifter('hg19', 'hg38') | ||
chrom = '1' | ||
pos = int(text) | ||
#converter = get_lifter('hg19', 'hg38') | ||
#chrom = '1' | ||
#pos = int(text) | ||
|
||
return converter[chrom][pos][0][1] | ||
return text #converter[chrom][pos][0][1] |
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,10 @@ | ||
from setuptools import setup, find_packages | ||
|
||
setup( | ||
name="open-variant", | ||
version="0.0.2", | ||
author="BBGLab - Barcelona Biomedical Genomics Lab", | ||
packages=find_packages(exclude=['*.tests', '*.tests.*', 'tests.*', 'tests', 'plugins']), | ||
include_package_data=True, | ||
install_requires=['pyyaml'], | ||
) |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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,16 @@ | ||
pattern = "*.maf" | ||
recursive = True | ||
|
||
[annotations] | ||
GENOMEREF = "hg19" | ||
#FILTERS = "('internal', 'FILTER')" | ||
#SAMPLE = "('filename', '([^.*]+)\.purple.somatic.vcf.gz')" | ||
#SAMPLE = "('mapping', 'SETNAME', 'metadata_intogen.tsv', 'setName', 'sampleId')" | ||
#DONOR = "('mapping', 'SAMPLE', 'metadata_intogen.tsv', 'sampleId', 'patientId')" | ||
PLATFORM = "WGS" | ||
YEAR = "2020" | ||
#CANCER = "('mapping', 'SAMPLE', 'metadata_intogen.tsv', 'sampleId', 'TUMOR_TYPE')" | ||
#DATASET = "HARTWIG_{PLATFORM}_{CANCER}_{YEAR}" | ||
|
||
[excludes] | ||
# Exclude variants that didn't pass the quality control checks |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
26 changes: 13 additions & 13 deletions
26
test/test_task/test_count.py → tests/test_task/test_count.py
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import unittest | ||
from os import getcwd | ||
|
||
from openvariant.annotation.annotation import Annotation | ||
from openvariant.task.find import find_files | ||
|
||
|
||
class TestFind(unittest.TestCase): | ||
|
||
def test_find_files(self): | ||
res_expect = {'tests/data/example2/KICH.maf', 'tests/data/example2/LAML.maf', 'tests/data/example1/ACC.maf', | ||
'tests/data/example1/CHOL.maf', 'tests/data/example3/MESO.maf', 'tests/data/example3/UCS.maf'} | ||
|
||
annotation = Annotation('tests/data/example.yaml') | ||
res = set([f for f, a in list(find_files('tests/data', annotation))]) | ||
self.assertEqual(res, res_expect) | ||
|
||
def test_invalid_find_files(self): | ||
annotation = Annotation('tests/data/example.yaml') | ||
with self.assertRaises(FileNotFoundError): | ||
set([f for f, a in list(find_files('tests/data/no-exist', annotation))]) | ||
|
||
|
||
if __name__ == '__main__': | ||
unittest.main() |
Oops, something went wrong.