Skip to content

Commit

Permalink
update method strainline
Browse files Browse the repository at this point in the history
  • Loading branch information
LaraFuhrmann committed Jan 9, 2024
1 parent ad4b459 commit 428c5d5
Showing 1 changed file with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,22 @@ def main(fname_bam,
seq_type,
threads,):


# create empty vcf files
f = open(fname_results_snv, "a")
f.write("#CHROM POS ID REF ALT QUAL FILTER INFO")
f.close()

if seq_type == "illumina":
# strainline doesn't work for illumina
# create fake files such that snakemake is happy

# create empty haplotype files
open(fname_result_haplos, "a").close()

# create empty vcf files
f = open(fname_results_snv, "a")
f.write("#CHROM POS ID REF ALT QUAL FILTER INFO")
f.close()
else:
# run strainline
path_to_strainline = "/cluster/work/bewi/members/lfuhrmann/viloca_benchmark_clean/V-pipe/resources/auxiliary_workflows/benchmark/resources/local_haplotype_setup//Strainline/src/strainline.sh"

if seq_type == "pacbio":
seq_platform = "pb"
Expand All @@ -64,7 +67,7 @@ def main(fname_bam,
# execute tool
subprocess.run(
[
"strainline.sh",
path_to_strainline,
"-i",
fname_reads_fasta,
"-o",
Expand All @@ -77,6 +80,8 @@ def main(fname_bam,
check=True,
)

# adapt haplotype output




Expand Down

0 comments on commit 428c5d5

Please sign in to comment.