Skip to content

Commit

Permalink
Move vcf with shutil instead of rename
Browse files Browse the repository at this point in the history
  • Loading branch information
aghozlane committed Nov 18, 2024
1 parent 22a56a8 commit 621efa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions meteor/variantcalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import lzma
import bgzip
import pickle
import shutil
from subprocess import CalledProcessError, run, Popen, PIPE
from dataclasses import dataclass
from pathlib import Path
Expand All @@ -31,7 +32,6 @@
import pandas as pd
from typing import ClassVar
import numpy as np
import pysam


def run_freebayes_chunk(
Expand Down Expand Up @@ -666,7 +666,7 @@ def execute(self) -> None:
logging.info("Merging vcf")
self.merge_vcf_files(vcf_chunk_files, vcf_file)
else:
Path(vcf_chunk_files[0]).rename(vcf_file)
shutil.move(str(vcf_chunk_files[0]), str(vcf_file.resolve()))
logging.info(
"Completed freebayes step in %f seconds", perf_counter() - startfreebayes
)
Expand Down

0 comments on commit 621efa9

Please sign in to comment.