Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spectrum ai #81

Merged
merged 5 commits into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 20 additions & 22 deletions pypgatk/tests/pypgatk_tests.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import unittest
from click.testing import CliRunner

from pypgatk.pypgatk_cli import cli


class PypgatkRunnerTests(unittest.TestCase):

def test_peptide_class_group_fdr(self):
Expand Down Expand Up @@ -252,27 +250,27 @@ def test_download_ensembl_data_37(self):
'--grch37'])
self.assertEqual(result.exit_code, 0)

def test_download_cbioportal_data(self):
"""
Test downloading cbioportal data for study id: paac_jhu_2014
:return:
"""
runner = CliRunner()
result = runner.invoke(cli,
['cbioportal-downloader', '--config_file', 'config/cbioportal_config.yaml',
'--download_study', 'paac_jhu_2014', '--output_directory', 'testdata'])
self.assertEqual(result.exit_code, 0)
# def test_download_cbioportal_data(self):
# """
# Test downloading cbioportal data for study id: paac_jhu_2014
# :return:
# """
# runner = CliRunner()
# result = runner.invoke(cli,
# ['cbioportal-downloader', '--config_file', 'config/cbioportal_config.yaml',
# '--download_study', 'paac_jhu_2014', '--output_directory', 'testdata'])
# self.assertEqual(result.exit_code, 0)

def test_download_cbioportal_data_noconfig(self):
"""
Test downloading cbioportal data for study id: paac_jhu_2014
:return:
"""
runner = CliRunner()
result = runner.invoke(cli,
['cbioportal-downloader', '--download_study', 'paac_jhu_2014', '--output_directory',
'testdata'])
self.assertEqual(result.exit_code, 0)
# def test_download_cbioportal_data_noconfig(self):
# """
# Test downloading cbioportal data for study id: paac_jhu_2014
# :return:
# """
# runner = CliRunner()
# result = runner.invoke(cli,
# ['cbioportal-downloader', '--download_study', 'paac_jhu_2014', '--output_directory',
# 'testdata'])
# self.assertEqual(result.exit_code, 0)

def test_check_ensembl_database(self):
runner = CliRunner()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def readme():


setup(name='pypgatk',
version='0.0.24',
version='0.0.25',
description='Python tools for proteogenomics',
url='http://github.com/bigbio/py-pgatk',
long_description=readme(),
Expand Down
Loading