-
Notifications
You must be signed in to change notification settings - Fork 3
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
23fb84d
commit 47db31c
Showing
12 changed files
with
34 additions
and
34 deletions.
There are no files selected for viewing
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.
6 changes: 3 additions & 3 deletions
6
utils/wget-xlsx-plugin/ict.yml → ...cess/data-download/wget-xlsx-tool/ict.yml
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,12 +1,12 @@ | ||
specVersion: "0.1.0" | ||
name: wget_xlsx | ||
version: 0.1.0 | ||
container: wget-xlsx-plugin | ||
container: wget-xlsx-tool | ||
entrypoint: | ||
title: wget_xlsx | ||
description: Download an xlsx file | ||
author: Data Scientist | ||
contact: [email protected] | ||
author: Brandon Walker, Nazanin Donyapour | ||
contact: [email protected], [email protected] | ||
repository: | ||
documentation: | ||
citation: | ||
|
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.
28 changes: 28 additions & 0 deletions
28
utils/pre-process/data-download/wget-xlsx-tool/tests/test_wget_xlsx.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
"""Test the wget_xlsx tool.""" | ||
from pathlib import Path | ||
|
||
from sophios.api.pythonapi import Step | ||
from sophios.api.pythonapi import Workflow | ||
|
||
|
||
def test_wget_xlsx() -> None: | ||
"""Test wget_xlsx.""" | ||
cwl_file_str = "wget_xlsx_0@[email protected]" | ||
cwl_file = Path(__file__).resolve().parent.parent / Path(cwl_file_str) | ||
|
||
wget_xlsx = Step(clt_path=cwl_file) | ||
wget_xlsx.url = "https://smacc.mml.unc.edu/ncats_target_based_curated.xlsx" | ||
wget_xlsx.output_xlsx_path = "system.xlsx" | ||
|
||
steps = [wget_xlsx] | ||
filename = "wget_xlsx" | ||
viz = Workflow(steps, filename) | ||
|
||
viz.run() | ||
|
||
outdir = Path("outdir") | ||
files = list(outdir.rglob("system.xlsx")) | ||
|
||
assert ( | ||
files | ||
), f"The file 'system.xlsx' does not exist in any subdirectory of '{outdir}'." |
File renamed without changes.
This file was deleted.
Oops, something went wrong.