Skip to content

Commit d7915b2

Browse files
committed
Fix #72 bam_input error
1 parent 32a9e98 commit d7915b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CRISPResso2/CRISPRessoCORE.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ def rreplace(s, old, new):
877877
info('Index file for input .bam file exists, skipping generation.')
878878
else:
879879
info('Creating index file for input .bam file...')
880-
bam_input_file = _jp(os.path.basename(bam_input_file))+".sorted.bam"
880+
bam_input_file = _jp(os.path.basename(args.bam_input))+".sorted.bam"
881881
sb.call('samtools sort -o '+bam_input_file+' ' + args.bam_input,shell=True)
882882
sb.call('samtools index %s ' % (bam_input_file), shell=True)
883883
files_to_remove.append(bam_input_file)

0 commit comments

Comments
 (0)