Skip to content

Commit

Permalink
complete main function of beadfinder file
Browse files Browse the repository at this point in the history
  • Loading branch information
saadati944 committed Jan 12, 2021
1 parent 5996af7 commit dd0345a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions beadfinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,11 @@ def getBeads(self, min_pixels):


def main():
'''
main function
pass parameters in this format :
$python beadfinder.py min_pixels threshold filename
'''
min_pixels = int(sys.argv[1])
tau = float(sys.argv[2])
input_file = sys.argv[3]
Expand All @@ -184,3 +189,6 @@ def main():

for blb in bf.getBeads(min_pixels):
print(blb)

if __name__=="__main__":
main()

0 comments on commit dd0345a

Please sign in to comment.