@@ -720,7 +720,7 @@ def RepeatModelMask(input, cpus, tmpdir, output, debug):
720
720
subprocess .call (['BuildDatabase' , '-name' , tmpdir , input ], cwd = 'RepeatModeler' , stdout = debug_log , stderr = FNULL )
721
721
log .info ("Soft-masking: generating repeat library using RepeatModeler" )
722
722
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 )
724
724
#find name of folder
725
725
for i in os .listdir ('RepeatModeler' ):
726
726
if i .startswith ('RM_' ):
@@ -757,7 +757,7 @@ def RepeatMask(input, library, cpus, tmpdir, output, debug):
757
757
if not os .path .isdir ('RepeatMasker' ):
758
758
os .makedirs ('RepeatMasker' )
759
759
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 )
761
761
for file in os .listdir ('RepeatMasker' ):
762
762
if file .endswith ('.masked' ):
763
763
os .rename (os .path .join ('RepeatMasker' , file ), output )
0 commit comments