我平时使用的python脚本header/头儿/格式/引用
2021-08-05 本文已影响0人
MYS_bio_man
#!/usr/bin/python
# -*- coding: utf-8 -*-
from optparse import OptionParser
import sys
import re
import os
# help, usage or args' definitions
# aim of this script:
# extract all PCG transcripts anotation in gtf
parser = OptionParser()
parser.add_option("-g", "--input_GTF", action="store", dest="input_GTF",
help="Referance gtf file [input must set]", metavar='FILE')
parser.add_option("-o", '--output_GTF', action="store", dest="output_GTF",
help="output prefix [default:extracted_all_PCG.T.gtf]",
metavar='FILE', default='extracted_all_PCG.T.gtf')
(options, args) = parser.parse_args()
input_GTF = str(options.input_GTF)
output_GTF = str(options.output_GTF)