def action(name, args): proteins = get_proteins() kwargs = vars(args) if 'func' in kwargs: kwargs.pop('func') if 'type' in kwargs: kwargs.pop('type') muts_import_manager.perform(name, proteins, **kwargs)
def load(args): print('Importing %s mappings' % (args.restrict_to or 'all')) proteins = get_proteins() if args.restrict_to != 'aminoacid_refseq': import_genome_proteome_mappings(proteins, bdb_dir=args.path) if args.restrict_to != 'genome_proteome': import_aminoacid_mutation_refseq_mappings(proteins, bdb_dir=args.path)
def load(self, args): print(f'Importing {args.restrict_to or "all"} mappings') proteins = get_proteins() if args.restrict_to != 'aminoacid_refseq': import_genome_proteome_mappings(proteins, bdb_dir=args.path) if args.restrict_to != 'genome_proteome': import_aminoacid_mutation_refseq_mappings(proteins, bdb_dir=args.path)