Skip to content

Commit

Permalink
multithread for samtools sort in sga-align
Browse files Browse the repository at this point in the history
  • Loading branch information
cihga39871 committed Aug 8, 2019
1 parent af73db6 commit 56fb39d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bin/sga-align
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ def runMerge(inFiles, outFile):
runCmd(cmd)

def runSort(inFile, outFile):

global threads
(outPrefix, fileExtension) = os.path.splitext(outFile)
cmd = "samtools sort %s -o %s.bam" % (inFile, outPrefix)
cmd = "samtools sort -@ %d %s -o %s.bam" % (threads, inFile, outPrefix)
runCmd(cmd)

#cmd = "samtools index %s" % (outFile)
Expand Down

0 comments on commit 56fb39d

Please sign in to comment.