Skip to content

Commit 66df06b

Browse files
committed
adding more testing from Metabolights
1 parent 4e55b5d commit 66df06b

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ RUN conda install -c conda-forge openjdk=11.0.9.1
3333
COPY requirements.txt .
3434
RUN pip install -r requirements.txt
3535

36+
# Install Aspera
37+
# RUN wget -qO- https://ak-delivery04-mul.dhe.ibm.com/sar/CMA/OSA/0a07f/0/ibm-aspera-connect_4.1.0.46-linux_x86_64.tar.gz | tar xvz
38+
# RUN chmod +x ibm-aspera-connect_4.1.0.46-linux_x86_64.sh
39+
# RUN ./ibm-aspera-connect_4.1.0.46-linux_x86_64.sh
40+
41+
3642
COPY . /app
3743
WORKDIR /app
3844

test/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ all:
33
pytest --durations=0 test_2d.py test_usi_resolution.py test_xic.py -n 8
44

55
resolve:
6+
pytest test_usi_resolution.py::test_resolve_remote_url -v --capture=tee-sys
67
pytest test_usi_resolution.py -v
8+
79

810
benchmark:
911
pytest --durations=0 -n 4 speed_test.py -v --profile-svg

test/test_usi_resolution.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ def test_resolve_remote_url():
1313
for record in df.to_dict(orient="records"):
1414
print(record["usi"])
1515
remote_link, resource_name = download._resolve_usi_remotelink(record["usi"])
16+
print("RESOLVED URL", remote_link, resource_name)
1617
assert(len(remote_link) > 0)
1718

1819
# Testing conversion

test/usi_list.tsv

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,7 @@ mzspec:PXD002854:20150414_QEp1_LC7_GaPI_SA_Serum_DT_03_150416181741:scan:2308:[+
3131
mzspec:ST001709:Sample_01___neg.mzXML
3232
mzspec:MSV000084754:ccms_peak/raw/Toronamide_MS3_DDA_2.mzML
3333
mzspec:MSV000086834:raw/20210210 GNPS LMCS/PA1MeOH1.aia.CDF
34-
mzspec:MSV000084169:raw/FractA1/0205045.CDF
34+
mzspec:MSV000084169:raw/FractA1/0205045.CDF
35+
mzspec:PXD002854:20150414_QEp1_LC7_GaPI_SA_Serum_DT_03_150416181741.mzXML
36+
mzspec:PXD028694:QEp21-1189_Song_SYDE2_Rep_aniso+inhib_FT.raw
37+
mzspec:MTBLS338:0307_63.CDF

0 commit comments

Comments
 (0)