This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import pyBigWig | |
| import argparse | |
| import os.path | |
| import sys | |
| parser = argparse.ArgumentParser(description="Subset a single chromosome from a bigWig file.") | |
| parser.add_argument("--headerToo", action="store_true", help="Subset the header too, which can expedite some downstream programs but possibly cause problems for others.") | |
| parser.add_argument("input", help="Input bigWig file.") | |
| parser.add_argument("output", help="Output bigWig file.") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rawFastqs = Channel.fromFilePairs(['data/*_{1,2}.fastq.gz', 'data/*_R{1,2}.fastq.gz']) | |
| databases = Channel.of(['label1', '/some/path/database'], ['label2', '/some/other/path/database'], ...) | |
| /+ | |
| The general structure of what I'd like to achieve, just without manually putting in all of the someProcess() calls | |
| That won't work for a variety of reasons, among them being that someProcess() would need an alias each time | |
| */ | |
| workflow { | |
| someProcess(rawFastqs, databases.first()) | |
| someProcess(someProcess.out.fastq, databases[2]) |
OlderNewer