本文整理匯總了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()