Skip to content

Commit 24cd359

Browse files
committed
fas.setup accepts both absolute and relative paths
1 parent 9428c46 commit 24cd359

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎greedyFAS/setupFAS.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def install_smart(smart_path, anno_path):
272272
subprocess.run([hmmpressCmd], shell=True, check=True)
273273
except:
274274
sys.exit('ERROR: Problem occurred while creating binary files for SMART at %s/SMART/SMART-hmms' % (anno_path))
275-
getVersionCmd = 'tail -n 1 %s/README | cut -d " " -f2 | sed "s/\//_/g" > %s/SMART/version.txt' % (smart_path, anno_path)
275+
getVersionCmd = f'tail -n 1 {smart_path}/README | cut -d " " -f2 | sed "s#/#_#g" > {anno_path}/SMART/version.txt'
276276
subprocess.call([getVersionCmd], shell=True)
277277
# write length file
278278
write_phmm_length(anno_path, 'SMART')
@@ -735,9 +735,9 @@ def main():
735735
args = parser.parse_args()
736736
greedyFasPath = os.path.realpath(__file__).replace('/setupFAS.py','')
737737
options = {
738-
'toolPath': args.toolPath,
739-
'smartPath': args.smartPath,
740-
'dtuPath': args.dtuPath,
738+
'toolPath': os.path.abspath(args.toolPath),
739+
'smartPath': os.path.abspath(args.smartPath),
740+
'dtuPath': os.path.abspath(args.dtuPath),
741741
'pfamVersion': args.pfamVersion,
742742
'pfamPath': args.pfamPath,
743743
'ignore': args.ignore,

‎setup.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
setup(
3030
name='greedyFAS',
31-
version='1.19.7',
31+
version='1.19.8',
3232
python_requires='>=3.12.0',
3333
description='A tool to compare protein feature architectures',
3434
long_description=long_description,

0 commit comments

Comments
 (0)