Skip to content

Commit 3ac1a10

Browse files
Jon PalmerJon Palmer
Jon Palmer
authored and
Jon Palmer
committed
explicit specification of repeatmasker ncbi engine
1 parent 74c367f commit 3ac1a10

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

funannotate.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def fmtcols(mylist, cols):
3131
for i in range(0,num_lines))
3232
return "\n".join(lines)
3333

34-
version = '0.3.9'
34+
version = '0.3.10'
3535

3636
default_help = """
3737
Usage: funannotate <command> <arguments>

lib/library.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ def RepeatModelMask(input, cpus, tmpdir, output, debug):
720720
subprocess.call(['BuildDatabase', '-name', tmpdir, input], cwd='RepeatModeler', stdout = debug_log, stderr=FNULL)
721721
log.info("Soft-masking: generating repeat library using RepeatModeler")
722722
with open(debug, 'a') as debug_log:
723-
subprocess.call(['RepeatModeler', '-database', tmpdir, '-pa', str(cpus)], cwd='RepeatModeler', stdout = debug_log, stderr=FNULL)
723+
subprocess.call(['RepeatModeler', '-e', 'ncbi', '-database', tmpdir, '-pa', str(cpus)], cwd='RepeatModeler', stdout = debug_log, stderr=FNULL)
724724
#find name of folder
725725
for i in os.listdir('RepeatModeler'):
726726
if i.startswith('RM_'):
@@ -757,7 +757,7 @@ def RepeatMask(input, library, cpus, tmpdir, output, debug):
757757
if not os.path.isdir('RepeatMasker'):
758758
os.makedirs('RepeatMasker')
759759
with open(debug, 'a') as debug_log:
760-
subprocess.call(['RepeatMasker', '-lib', library, '-pa', str(cpus), '-xsmall', '-dir', 'RepeatMasker', input], stdout=debug_log)
760+
subprocess.call(['RepeatMasker', '-e', 'ncbi', '-lib', library, '-pa', str(cpus), '-xsmall', '-dir', 'RepeatMasker', input], stdout=debug_log)
761761
for file in os.listdir('RepeatMasker'):
762762
if file.endswith('.masked'):
763763
os.rename(os.path.join('RepeatMasker', file), output)

0 commit comments

Comments
 (0)