Skip to content
Navigation Menu
Toggle navigation
Sign in
In this repository
All GitHub Enterprise
↵
Jump to
↵
No suggested jump to results
In this repository
All GitHub Enterprise
↵
Jump to
↵
In this organization
All GitHub Enterprise
↵
Jump to
↵
In this repository
All GitHub Enterprise
↵
Jump to
↵
Sign in
Reseting focus
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
loosolab
/
master_project_JLU2018
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
7
Pull requests
1
Actions
Projects
0
Wiki
Security
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security
Insights
Files
f0e2cef
bin
Modules
config
RegGTFExtractor.py
bed_to_fasta.R
call_peaks.py
call_peaks.yaml
cdhit_wrapper.R
compareBed.sh
get_best_motif.py
maxScore.R
merge.R
reduce_bed.R
config
.gitignore
README.md
masterenv.yml
nextflow.config
pipeline.nf
uropa.config
Breadcrumbs
master_project_JLU2018
/
bin
/
get_best_motif.py
Blame
Blame
Latest commit
History
History
23 lines (19 loc) · 579 Bytes
Breadcrumbs
master_project_JLU2018
/
bin
/
get_best_motif.py
Top
File metadata and controls
Code
Blame
23 lines (19 loc) · 579 Bytes
Raw
# 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()
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
You can’t perform that action at this time.