comprna / SUPPA

SUPPA: Fast quantification of splicing and differential splicing
MIT License
263 stars 62 forks source link

MultipleFieldSelection.py problem #114

Closed sunabcun closed 3 years ago

sunabcun commented 3 years ago

Hi, I tried to use the MultipleFieldSelection.py but I run into this problem even after changing names, -k -f setting. Currently my data from Salmon located in C:/Users/sonyu/SUPPA-2.3/Salmon as multiple folders and in the folders I have each quant.sf file. I thought that it should be pretty simple but it seems like this program duplicates \ or not recognizing folder names. Is there any way I can change the code to make them work? Thanks!

This is the error codes I got:

Run: C:\Users\sonyu\SUPPA-2.3>python multipleFieldSelection.py -i C:\Users\sonyu\SUPPA-2.3\Salmon\*\quant.sf -k 0 -f 0 -o C\Users\sonyu\SUPPA-2.3\iso_tpm.txt

INFO: Reading file: C:\Users\sonyu\SUPPA-2.3\Salmon\*\quant.sf
Traceback (most recent call last):
  File "multipleFieldSelection.py", line 60, in <module>
    with open(inputFile, 'r') as f:
OSError: [Errno 22] Invalid argument: 'C:\\Users\\sonyu\\SUPPA-2.3\\Salmon\\*\\quant.sf'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "multipleFieldSelection.py", line 131, in <module>
    print("ERROR: %s" % err)
NameError: name 'err' is not defined

Run2: C:\Users\sonyu\SUPPA-2.3>python multipleFieldSelection.py -i ~/Users/sonyu/SUPPA-2.3/Salmon/*/quant.sf -k 0 -f 0 -o ~/Users/sonyu/SUPPA-2.3/iso_tpm.txt

INFO: Reading file: ~/Users/sonyu/SUPPA-2.3/Salmon/*/quant.sf
Traceback (most recent call last):
  File "multipleFieldSelection.py", line 60, in <module>
    with open(inputFile, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '~/Users/sonyu/SUPPA-2.3/Salmon/*/quant.sf'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "multipleFieldSelection.py", line 131, in <module>
    print("ERROR: %s" % err)
NameError: name 'err' is not defined