本文整理汇总了Python中output.Output.sample_variants_csv方法的典型用法代码示例。如果您正苦于以下问题:Python Output.sample_variants_csv方法的具体用法?Python Output.sample_variants_csv怎么用?Python Output.sample_variants_csv使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类output.Output
的用法示例。
在下文中一共展示了Output.sample_variants_csv方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: output
# 需要导入模块: from output import Output [as 别名]
# 或者: from output.Output import sample_variants_csv [as 别名]
def output(self):
if self.args['type'] == 'sample':
if not sampleinfo_mongo.is_fully_annotated(self.args['name']):
annotate = Annotate()
annotate.annotate_sample(self.args['name'], 'orig')
output_files = Output()
output_files.sample_variants_csv(self.args['name'], 'orig')
示例2: add
# 需要导入模块: from output import Output [as 别名]
# 或者: from output.Output import sample_variants_csv [as 别名]
def add(self):
adder = Add()
if self.args['one_sample'] is not None:
new_sample = [tuple(entry.strip('}').strip('{').strip(',').split(':')) for entry in self.args['one_sample']]
new_sample = dict(new_sample)
adder.add_one_sample(new_sample)
if len(self.args['email']) > 0:
if not sampleinfo_mongo.is_fully_annotated(new_sample['SAMPLE']):
annotate = Annotate()
annotate.annotate_sample(new_sample['SAMPLE'], 'orig')
output_files = Output()
final_file = output_files.sample_variants_csv(new_sample['SAMPLE'], 'orig')
message = "Here are all the variants for the sample %s with their QC status." % new_sample['SAMPLE']
for address in self.args['email']:
self.__log_sending_email(address)
output_bash.email_file(message, final_file, address)
elif self.args['sample_info'] is not None:
adder.add_sample_info(self.args['sample_info'])