當前位置: 首頁>>代碼示例>>Python>>正文


Python Launch.get_args方法代碼示例

本文整理匯總了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()
開發者ID:RubD,項目名稱:long-rna-seq-pipeline,代碼行數:12,代碼來源:srnaLaunch.py

示例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()
開發者ID:Kisun,項目名稱:long-rna-seq-pipeline,代碼行數:15,代碼來源:srnaLaunch.py

示例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()
開發者ID:devnull86,項目名稱:long-rna-seq-pipeline,代碼行數:17,代碼來源:rampageLaunch.py

示例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()
開發者ID:BioNinja,項目名稱:long-rna-seq-pipeline,代碼行數:18,代碼來源:lrnaLaunch.py

示例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()
開發者ID:ENCODE-DCC,項目名稱:dnase_pipeline,代碼行數:24,代碼來源:dnaseLaunch.py


注:本文中的launch.Launch.get_args方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。