Skip to content

Commit

Permalink
Merge pull request #78 from dnanexus/fix-cmdline-novoindex
Browse files Browse the repository at this point in the history
Fix command-line invocation of `python read_utils.py novoindex foobar.fasta`
  • Loading branch information
dpark01 committed Jan 25, 2015
2 parents 2c10a9c + 0e72301 commit fd1bfb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/novoalign.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,17 @@ def execute(self, inBam, refFasta, outBam,
JVMmemory=JVMmemory)


def index_fasta(self, fasta):
def index_fasta(self, refFasta):
''' Index a FASTA file (reference genome) for use with Novoalign.
The input file name must end in ".fasta". This will create a
new ".nix" file in the same directory. If it already exists,
it will be deleted and regenerated.
'''
novoindex = os.path.join(os.path.dirname(self.install_and_get_path()), 'novoindex')
outfname = self._fasta_to_idx_name(fasta)
outfname = self._fasta_to_idx_name(refFasta)
if os.path.isfile(outfname):
os.unlink(outfname)
cmd = [novoindex, outfname, fasta]
cmd = [novoindex, outfname, refFasta]
log.debug(' '.join(cmd))
subprocess.check_call(cmd)
try:
Expand Down

0 comments on commit fd1bfb4

Please sign in to comment.