Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When the input file is in the current working directory, and -o is specified, the input file gets moved #4

Closed
wwood opened this issue Nov 12, 2014 · 1 comment

Comments

@wwood
Copy link
Collaborator

wwood commented Nov 12, 2014

I guess it is due to this part of the code (the mv)

# HMM aligning
def hmmalign(hmm, sequencefile):
    base_name = replace_name(sequencefile, '')  # Create a base name for output files
    subprocess.check_call("mkdir -p " + cl.o[0], shell=True)
    subprocess.check_call("mv " + base_name + ".* " + cl.o[0], shell=True)
    subprocess.check_call('hmmalign --trim -o ' + base_name + '.sto ' + hmm + ' ' + cl.o[0] + '/' + sequencefile, shell=True)
    subprocess.check_call('seqmagick convert ' + base_name + '.sto ' + base_name + '_conv_.fa', shell=True)
@geronimp
Copy link
Owner

Fixed

geronimp added a commit that referenced this issue Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants