Skip to content

Commit

Permalink
explicit specification of repeatmasker ncbi engine
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Palmer authored and Jon Palmer committed Sep 18, 2016
1 parent 74c367f commit 3ac1a10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion funannotate.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def fmtcols(mylist, cols):
for i in range(0,num_lines))
return "\n".join(lines)

version = '0.3.9'
version = '0.3.10'

default_help = """
Usage: funannotate <command> <arguments>
Expand Down
4 changes: 2 additions & 2 deletions lib/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ def RepeatModelMask(input, cpus, tmpdir, output, debug):
subprocess.call(['BuildDatabase', '-name', tmpdir, input], cwd='RepeatModeler', stdout = debug_log, stderr=FNULL)
log.info("Soft-masking: generating repeat library using RepeatModeler")
with open(debug, 'a') as debug_log:
subprocess.call(['RepeatModeler', '-database', tmpdir, '-pa', str(cpus)], cwd='RepeatModeler', stdout = debug_log, stderr=FNULL)
subprocess.call(['RepeatModeler', '-e', 'ncbi', '-database', tmpdir, '-pa', str(cpus)], cwd='RepeatModeler', stdout = debug_log, stderr=FNULL)
#find name of folder
for i in os.listdir('RepeatModeler'):
if i.startswith('RM_'):
Expand Down Expand Up @@ -757,7 +757,7 @@ def RepeatMask(input, library, cpus, tmpdir, output, debug):
if not os.path.isdir('RepeatMasker'):
os.makedirs('RepeatMasker')
with open(debug, 'a') as debug_log:
subprocess.call(['RepeatMasker', '-lib', library, '-pa', str(cpus), '-xsmall', '-dir', 'RepeatMasker', input], stdout=debug_log)
subprocess.call(['RepeatMasker', '-e', 'ncbi', '-lib', library, '-pa', str(cpus), '-xsmall', '-dir', 'RepeatMasker', input], stdout=debug_log)
for file in os.listdir('RepeatMasker'):
if file.endswith('.masked'):
os.rename(os.path.join('RepeatMasker', file), output)
Expand Down

0 comments on commit 3ac1a10

Please sign in to comment.