Skip to content

Commit

Permalink
get best motif from meme
Browse files Browse the repository at this point in the history
  • Loading branch information
renewiegandt committed Nov 5, 2018
1 parent 77e40e3 commit 14fef9d
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions bin/get_best_motif.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# parses arguments using argparse
# @return args list of all parameters
def parse_arguments():
parser = argparse.ArgumentParser()
parser.add_argument("meme", help="Path to meme file")
parser.add_argument("output", help="")
args = parser.parse_args()
return args


def main():
args = parse_arguments()
out = open(args.output, "w+")
with open(args.meme) as f:
for line in f:
if 'MOTIF 2' in line:
break
out.write(line)


if __name__ == "__main__":
import argparse
main()

0 comments on commit 14fef9d

Please sign in to comment.