Skip to content

Commit 759845a

Browse files
authored
Merge pull request #2 from computational-metabolomics/Release-v0.1.1
v.0.1.1
2 parents 36deab3 + b7882fb commit 759845a

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

amimspy/__main__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,9 @@ def main():
452452
if args.metalist is not None:
453453
pl_aligned = update_metadata_and_labels(
454454
[pl_aligned], metadata)
455-
peaklists.append(pl_aligned[0])
455+
peaklists.append(pl_aligned[0])
456+
else:
457+
peaklists.append(pl_aligned)
456458

457459
with open(args.failed_wells, "w") as out:
458460
for well in failed_wells:

examples/run.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,19 @@
44
amimspy process-scans --input ../tests/data/testData1.mzML ../tests/data/testData2.mzML \
55
--metascans ../tests/data/testData1.txt ../tests/data/testData2.txt --output ../tests/results/peaklists \
66
--failed-wells ../tests/results/failed_wells.txt --processed_scans ../tests/results/processed_scans.txt \
7-
--snr-threshold 3 --min-scans 2 --min-fraction 0.5 --ppm 20 --metalist ../tests/data/SampleMetadata.txt
7+
--snr-threshold 3 --min-scans 2 --min-fraction 0.5 --ppm 20
8+
# --metalist ../tests/data/SampleMetadata.txt
9+
810

911
# hdf5 peaklist to txt
1012
amimspy hdf5-pls-to-txt --input ../tests/results/peaklists.hdf5 --output ../tests/results
1113

14+
1215
#Prcoess samples
1316
amimspy process-samples --input ../tests/results/peaklists.hdf5 --output ../tests/results/peakmatrix.hdf5 \
1417
--ppm 20 --min-fraction 0.5
1518

19+
1620
# hdf5 peak matrix to txt
1721
amimspy hdf5-pm-to-txt --input ../tests/results/peakmatrix.hdf5 --output ../tests/results/peakmatrix.txt \
1822
--attribute_name intensity --representation-samples columns --comprehensive

0 commit comments

Comments
 (0)