-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cut and run/tag peak calling options (#751)
* modified peak calling options to be able to handle the cut and run data * removed extra params * macs2 for single end data * small fixes for chip pipeline and started adding bowtie2 params to the dna_mapping pipeline. * took care of empty fragment size file. * fixed the number of runs for the chipseq dry run * more changes in the number of lines in dry test test * typo * changing the number of lines dag test * changed macs2 with spike to be able to handle the cutntag changes * test_dag * Update test_dag.sh * Update test_dag.sh * Update test_dag.sh * genome size parameters * bowtie2/dnamaaping * number of lines in dag * more fix for dag line numbers * added the python version to the azure pipeline * fixed the number of lines for the allelic pipeline * auzre test on create conda env * azure test update * conda prefix * flake * more flake * more developtment on create env python3.7 * flake * typo Co-authored-by: Leily Rabbani <rabbani@maximus.ie-freiburg.mpg.de> Co-authored-by: Leily Rabbani <rabbani@pc390.ie-freiburg.mpg.de>
- Loading branch information
1 parent
f5b5f75
commit b28b23a
Showing
13 changed files
with
178 additions
and
92 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/usr/bin/env python | ||
|
||
import subprocess as sp | ||
import sys | ||
import argparse | ||
|
||
sys.path.append("..") | ||
from snakePipes import common_functions as cf | ||
|
||
|
||
def parse_args(): | ||
parser = argparse.ArgumentParser() | ||
required = parser.add_argument_group('Required Arguments') | ||
required.add_argument("-d", | ||
dest="envs_chunk", | ||
help="chunk of env to be used when running `snakePipes createEnvs`", | ||
required=True) | ||
return parser | ||
|
||
|
||
parser = parse_args() | ||
args = parser.parse_args() | ||
|
||
keys = [] | ||
length = len(cf.set_env_yamls().items()) | ||
index = length / 3 | ||
index = round(index) | ||
if args.envs_chunk == str(1): | ||
envs = range(0, index) | ||
elif args.envs_chunk == str(2): | ||
envs = range(index, 2 * index) | ||
elif args.envs_chunk == str(3): | ||
envs = range(2 * index, length) | ||
|
||
for i in range(index): | ||
keys.append(list(cf.set_env_yamls())[i]) | ||
envs_to_test = " ".join(keys) | ||
sp.check_output("snakePipes createEnvs --only {} --force".format(envs_to_test), shell=True) |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.