-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathAS2SegsMapper.py
31 lines (21 loc) · 1006 Bytes
/
AS2SegsMapper.py
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
import sys
import logging
from argparse import ArgumentParser, RawTextHelpFormatter
from lib.Seg2EventMapper import generateEventsSegsIOE
description = \
"Description:\n\n" + \
"This subcommand Maps alternative splicing events to their respective " + \
"inclusion/exclusion segments"
parser = ArgumentParser(description=description, formatter_class=RawTextHelpFormatter,
add_help=False)
parser.add_argument("-fa", "--segments-file", help="specify segments FASTA file",
required=True)
parser.add_argument("-ioe", "--events-file", help="specify events annotation file (.ioe file generated by SUPPA)",
required=True)
parser.add_argument("-o", "--output-dir", help="specify output path", required=True)
def main():
args = parser.parse_args()
generateEventsSegsIOE(args.segments_file, args.events_file, args.output_dir)
logger.info("Done")
if __name__ == '__main__':
main()