Nantes Université

Skip to content
Extraits de code Groupes Projets
Valider 857fb663 rédigé par Hugo LEFEUVRE's avatar Hugo LEFEUVRE
Parcourir les fichiers

added a bam path function for a CONCOT parameter

parent c5f7d5e6
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!15New binning strategie and tools and new bin refinement tool, new ARGs and MGEs detection tools
......@@ -398,6 +398,14 @@ def concoct_bam_input(wildcards):
), src=assembly_dict.get(assembly_request))
return inputs
def path_to_bam(wildcards):
if "CASB" in strategies or "CACB" in strategies:
path = os.path.join(intermediate_results_dir, "assembly/co_assembly/megahit/" + wildcards.src + "/compute_depth/*.sorted.bam")
return path
if "SASB" in strategies or "SACB" in strategies:
path = os.path.join(intermediate_results_dir, "assembly/single_assembly/megahit/" + wildcards.src + "/compute_depth/*.sorted.bam")
return path
rule concoct_coverage_table:
'''
Generate table with coverage depth information per sample and subcontig
......@@ -411,7 +419,7 @@ rule concoct_coverage_table:
os.path.join(CONDAENV, "concoct.yaml")
threads: 5
params:
bam_path = os.path.join(intermediate_results_dir, "assembly/single_assembly/megahit/{src}/compute_depth/*.sorted.bam"),
bam_path = path_to_bam
shell:
"concoct_coverage_table.py {input[0]} {params.bam_path} > {output.coverage} "
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter