Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
    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)
Ejemplo n.º 3
0
    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)