Skip to content

Commit

Permalink
fixup! Format Python code with psf/black pull_request
Browse files Browse the repository at this point in the history
  • Loading branch information
PMBio authored and PMBio committed Mar 22, 2024
1 parent 073f2a3 commit 327face
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions deeprvat/annotations/annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -1652,7 +1652,7 @@ def merge_annotations(
deepripe_hg2_file: str,
deepripe_k5_file: str,
variant_file: str,
vcf_file:str,
vcf_file: str,
out_file: str,
vepcols_to_retain: Optional[str],
):
Expand Down Expand Up @@ -1680,7 +1680,9 @@ def merge_annotations(
vep_df = pd.read_csv(vep_file, header=vep_header_line, sep="\t", na_values="-")
if vepcols_to_retain is not None:
vepcols_to_retain = [c for c in vepcols_to_retain.split(",")]
vep_df = process_vep(vep_file=vep_df, vcf_file = vcf_file, vepcols_to_retain=vepcols_to_retain)
vep_df = process_vep(
vep_file=vep_df, vcf_file=vcf_file, vepcols_to_retain=vepcols_to_retain
)
logger.info(f"vep_df shape is {vep_df.shape}")
logger.info("load deepripe_parclip")

Expand Down Expand Up @@ -1721,7 +1723,6 @@ def merge_annotations(
ca.to_parquet(out_file, compression="zstd")



def process_deepripe(deepripe_df: pd.DataFrame, column_prefix: str) -> pd.DataFrame:
"""
Process the DeepRipe DataFrame, rename columns and drop duplicates.
Expand Down

0 comments on commit 327face

Please sign in to comment.