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
396e183
bin
Modules
config
RegGTFExtractor.py
bed_to_fasta.R
call_peaks.py
call_peaks.yaml
compareBed.sh
get_best_motif.py
maxScore.R
merge.R
config
.gitignore
README.md
masterenv.yml
nextflow.config
pipeline.nf
uropa.config
Breadcrumbs
master_project_JLU2018
/
bin
/
RegGTFExtractor.py
Blame
Blame
Latest commit
History
History
42 lines (30 loc) · 1.49 KB
Breadcrumbs
master_project_JLU2018
/
bin
/
RegGTFExtractor.py
Top
File metadata and controls
Code
Blame
42 lines (30 loc) · 1.49 KB
Raw
#!/usr/bin/env python3 import argparse from Modules.Ensembl.Ensembl import Ensembl from Modules.ucsc.ucsc import UcscGtf from Modules.Uniquifier import UniqueFilter from Modules.SaveResults import ResultSaver import os def check_for_local_folder(wd): if not os.path.isdir(os.path.join(wd, "/EnsemblData")): os.mkdir(os.path.join(wd, "/EnsemblData")) if not os.path.isdir(os.path.join(wd, "/UCSCData" )): os.mkdir(os.path.join(wd, "/UCSCData" )) def main_script(org, wd, tissuetype=None): check_for_local_folder(wd) ucsc = UcscGtf(org, wd) ense = Ensembl(org, wd) print("Getting Unique Results") unique_filter = UniqueFilter(ense.get_gtf(), ucsc.get_gtf(), tissuetype) ResultSaver(unique_filter.get_results(), org, tissuetype) if __name__ == '__main__': parser = argparse.ArgumentParser(description='GTF-Generator from UCSC Table Browser and Ensembl Regulatory Build' ) parser.add_argument('organism', help='Source organism [ homo_sapiens or mus_musculus ]', action='store', nargs='?', type=str) parser.add_argument('--tissue', help='Tissue- or Celltype(s)', action='store', nargs='*', type=str) parser.add_argument('--wd', help='Working directory. default: "."', default=".", action='store', type=str) args = vars(parser.parse_args()) if args["organism"]: #print(args["tissue"]) main_script(args["organism"], args["wd"], args["tissue"]) else: print("No Arguments found -> See ./RegGTFExtractor.py -h for help.")
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
You can’t perform that action at this time.