Skip to content

Commit

Permalink
ignoring constant error msg for index building
Browse files Browse the repository at this point in the history
  • Loading branch information
sadkat committed Sep 21, 2018
1 parent 9d1c4d0 commit 44786ce
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions magellan/magellan/_mapper.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import os
import subprocess

# Do we want to install bowtie? do we want to adapt to windows?
Expand All @@ -22,19 +21,16 @@ def _check_bowtie_install():
def bowtie2_build_index(fasta_file, index, offrate=None):
cmd = 'bowtie2-build %s %s' % (fasta_file, index)
if offrate:
cmd = cmd + '-o ' + offrate
cmd = cmd + ' -o ' + str(offrate)
print 'running: ', cmd
_check_bowtie_install()

'''
_, err = subprocess.Popen(cmd,
stderr=subprocess.PIPE,
shell=True).communicate()
if err:
raise RuntimeError('bowtie index building failed for fasta %s' % (fasta_file))
'''




def bowtie2_map(
fastq_file,
index,
Expand Down

0 comments on commit 44786ce

Please sign in to comment.