How to do it…

Take a look at the following steps, which can be found on Chapter8/pipelines/galaxy/api.py:

  1. We start by decrypting our configuration file. We need to supply a password:
import base64from collections import defaultdictimport ftplibimport getpassimport pprintimport warningsfrom ruamel.yaml import YAMLfrom cryptography.fernet import Fernetfrom cryptography.hazmat.backends import default_backendfrom cryptography.hazmat.primitives import hashesfrom cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMACimport pandas as pdfrom bioblend.galaxy import GalaxyInstancepp = pprint.PrettyPrinter()warnings.filterwarnings('ignore')# explain above, and warnwith open('galaxy.yaml.enc', 'rb') as f:    enc_conf = f.read()password = getpass.getpass('Please ...

Get Bioinformatics with Python Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.