本文整理汇总了Python中launch.Launch.get_args方法的典型用法代码示例。如果您正苦于以下问题:Python Launch.get_args方法的具体用法?Python Launch.get_args怎么用?Python Launch.get_args使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类launch.Launch
的用法示例。
在下文中一共展示了Launch.get_args方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: get_args
# 需要导入模块: from launch import Launch [as 别名]
# 或者: from launch.Launch import get_args [as 别名]
def get_args(self):
'''Parse the input arguments.'''
ap = Launch.get_args(self,parse=False)
ap.add_argument('-a', '--annotation',
help="Label of annotation (default: '" + self.ANNO_DEFAULT + "')",
choices=[self.ANNO_DEFAULT, 'M2','M3','M4'],
default=self.ANNO_DEFAULT,
required=False)
return ap.parse_args()
示例2: get_args
# 需要导入模块: from launch import Launch [as 别名]
# 或者: from launch.Launch import get_args [as 别名]
def get_args(self):
"""Parse the input arguments."""
ap = Launch.get_args(self, parse=False)
ap.add_argument(
"-a",
"--annotation",
help="Label of annotation (default: '" + self.ANNO_DEFAULT + "')",
choices=[self.ANNO_DEFAULT, "M2", "M3", "M4"],
default=self.ANNO_DEFAULT,
required=False,
)
return ap.parse_args()
示例3: get_args
# 需要导入模块: from launch import Launch [as 别名]
# 或者: from launch.Launch import get_args [as 别名]
def get_args(self):
'''Parse the input arguments.'''
ap = Launch.get_args(self,parse=False)
# NOTE: Could override get_args() to have this non-generic control message
#ap.add_argument('-c', '--control',
# help='The control bam for peak calling.',
# required=False)
ap.add_argument('-a', '--annotation',
help="Label of annotation (default: '" + self.ANNO_DEFAULT + "')",
choices=[self.ANNO_DEFAULT, 'M2','M3','M4'],
default=self.ANNO_DEFAULT,
required=False)
return ap.parse_args()
示例4: get_args
# 需要导入模块: from launch import Launch [as 别名]
# 或者: from launch.Launch import get_args [as 别名]
def get_args(self):
'''Parse the input arguments.'''
ap = Launch.get_args(self,parse=False)
ap.add_argument('-a', '--annotation',
help="Label of annotation (default: '" + self.ANNO_DEFAULT + "')",
choices=[self.ANNO_DEFAULT, 'M2','M3','M4'],
default=self.ANNO_DEFAULT,
required=False)
ap.add_argument('--no_tophat',
help='Do not include TopHat steps in pipeline (default: include TopHat steps).',
action='store_true',
required=False)
return ap.parse_args()
示例5: get_args
# 需要导入模块: from launch import Launch [as 别名]
# 或者: from launch.Launch import get_args [as 别名]
def get_args(self):
'''Parse the input arguments.'''
ap = Launch.get_args(self,parse=False)
ap.add_argument('-rl', '--read_length',
help='The length of reads.',
type=int,
choices=['32', '36', '40', '50', '58', '72', '76', '100'],
default='100',
required=False)
ap.add_argument('--umi',
help='Treat fastqs as having UMI flags embedded.',
action='store_true',
required=False)
# NOTE: Could override get_args() to have this non-generic control message
#ap.add_argument('-c', '--control',
# help='The control bam for peak calling.',
# required=False)
return ap.parse_args()