Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

format the code and fix bug #7

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
6 changes: 3 additions & 3 deletions cmseq/breadth_depth.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def bd_from_file():
si = True if args.sortindex else False
mode = 'all' if args.f else 'nofilter'

bf = BamFile(args.BAMFILE,sort=si,index=si,stepper=mode,minlen=args.minlen,filterInputList=args.contig,minimumReadsAligning=args.mincov)
bf = BamFile(args.BAMFILE,sort=si,index=si,stepper=mode,minlen=args.minlen,filtRefGenomes=args.contig,minimumReadsAligning=args.mincov)

print('Contig\tBreadth\tDepth avg\tDepth median')

Expand All @@ -37,7 +37,7 @@ def bd_from_file():

if not all(np.isnan(x) for x in [bd_result[0],bd_result[1],bd_result[2]]):
print (i.name+'\t'+str(bd_result[0])+'\t'+str(bd_result[1])+'\t'+str(bd_result[2]))

if args.combine:
all_coverage_values.extend(bd_result[3])

Expand All @@ -49,4 +49,4 @@ def bd_from_file():


if __name__ == "__main__":
bd_from_file()
bd_from_file()
Loading