-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: align mg assembly rules to expected outputs
- Loading branch information
Ryan Routsong
committed
Feb 1, 2024
1 parent
0efd53f
commit 725f091
Showing
6 changed files
with
57 additions
and
16 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,20 @@ | ||
{ | ||
"sif": "/data/openomics/SIFs/", | ||
"mounts": { | ||
"kaiju": { | ||
"to": "/opt/kaiju", | ||
"from": "/data/openomics/references/weave/kaiju/kaiju_db_nr_euk_2023-05-10", | ||
"mode": "ro" | ||
}, | ||
"kraken2" : { | ||
"to": "/opt/kraken2", | ||
"from": "/data/openomics/references/weave/kraken2/k2_pluspfp_20230605", | ||
"mode": "ro" | ||
}, | ||
"fastq_screen" : { | ||
"to": "/fdb/fastq_screen/FastQ_Screen_Genomes", | ||
"from": "/data/openomics/references/weave/FastQ_Screen_Genomes", | ||
"mode": "ro" | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -4,3 +4,4 @@ terminaltables | |
pyyaml | ||
tabulate | ||
progressbar | ||
python-dateutil |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,9 +113,10 @@ def exec_snakemake(popen_cmd, local=False, dry_run=False, env=None, cwd=None): | |
else: | ||
popen_kwargs['cwd'] = str(Path.cwd()) | ||
|
||
parent_jobid = None | ||
if local or dry_run: | ||
proc = Popen(popen_cmd, stdout=PIPE, stderr=STDOUT, **popen_kwargs) | ||
parent_jobid = None | ||
popen_kwargs['env'].update(os.environ) | ||
proc = Popen(map(str, popen_cmd), stdout=PIPE, stderr=STDOUT, **popen_kwargs) | ||
for line in proc.stdout: | ||
lutf8 = line.decode('utf-8') | ||
jid_search = re.search(r"external jobid \'(\d+)\'", lutf8, re.MULTILINE) | ||
|
@@ -139,15 +140,16 @@ def exec_snakemake(popen_cmd, local=False, dry_run=False, env=None, cwd=None): | |
def mk_sbatch_script(wd, cmd): | ||
if not Path(wd, 'logs', 'masterjob').exists(): | ||
Path(wd, 'logs', 'masterjob').mkdir(mode=0o755, parents=True) | ||
shebang = "#!/bin/bash --login" if host == 'skyline' else '#!/bin/bash' | ||
master_job_script = \ | ||
f""" | ||
#!/bin/bash | ||
{shebang} | ||
#SBATCH --job-name=weave_masterjob | ||
#SBATCH --output={wd}/logs/masterjob/%x_%j.out | ||
#SBATCH --error={wd}/logs/masterjob/%x_%j.err | ||
#SBATCH --ntasks=1 | ||
#SBATCH --cpus-per-task=2 | ||
#SBATCH --time=02-00:00:00 | ||
#SBATCH --time=05-00:00:00 | ||
#SBATCH --export=ALL | ||
#SBATCH --mem=16g | ||
""".lstrip() | ||
|
@@ -169,7 +171,9 @@ def get_mods(init=False): | |
mod_cmd.append('source /gs1/apps/user/rmlspack/share/spack/setup-env.sh') | ||
mod_cmd.append('spack load [email protected]') | ||
mod_cmd.append('source activate snakemake7-19-1') | ||
else: | ||
elif host == 'skyline': | ||
mod_cmd.append('source /data/openomics/bin/dependencies.sh') | ||
elif host == 'biowulf': | ||
if init: | ||
mod_cmd.append('source /etc/profile.d/modules.sh') | ||
else: | ||
|
@@ -259,7 +263,7 @@ def exec_pipeline(configs, dry_run=False, local=False): | |
top_env['SINGULARITY_CACHEDIR'] = str(Path(this_config['out_to'], '.singularity').absolute()) | ||
this_cmd = [ | ||
"snakemake", | ||
"-pr", | ||
"-pr", "--cores", "all", | ||
"--use-singularity", | ||
"--rerun-incomplete", | ||
"--keep-incomplete", | ||
|
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