lib5c.util.demo_data module

lib5c.util.demo_data.download_gzipped_file(url, target, chunk_size=16384)[source]

Downloads and unzips a gzipped remote file.

Parameters
  • url (str) – The URL of the remote file.

  • target (str) – The complete path to write the unzipped file to.

lib5c.util.demo_data.edit_demo_config(config_file='luigi.cfg')[source]

Given the path to a default pipeline config file on disk, this function edits that default config file in place to prepare it for the pipeline tutorial.

Parameters

config_file (str) – The path to a default pipeline config file.

lib5c.util.demo_data.ensure_demo_data(dest_dir='input')[source]

Downloads the demo data if it doesn’t exist yet.

The primerfile will be edited to remove regions other than Sox2 and Klf4.

Parameters

dest_dir (str) – The directory to download the demo data to. Will be created if it doesn’t exist.

lib5c.util.demo_data.main()[source]