Skip to content

Commit

Permalink
Make black satisfy
Browse files Browse the repository at this point in the history
  • Loading branch information
giacuong171 committed May 22, 2024
1 parent f1af42c commit 2fcf1bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 2 additions & 4 deletions snappy_wrappers/wrappers/pvactools/combining/comb_rna.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,8 @@ def parse_expression_file(args, vcf_reader, vcf_writer):
id_column, args.expression_file
)
)
if (args.ignore_ensembl_id_version):
df[id_column] = df[id_column].apply(
lambda x: re.sub(r"\.[0-9]+$", "", x)
)
if args.ignore_ensembl_id_version:
df[id_column] = df[id_column].apply(lambda x: re.sub(r"\.[0-9]+$", "", x))
exp_df = df[[id_column, expression_column]]
exp_dict = exp_df.set_index(id_column)[expression_column].to_dict()
return exp_dict
Expand Down
4 changes: 3 additions & 1 deletion snappy_wrappers/wrappers/pvactools/combining/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
"--ignore-ensembl-id-version" if config["preparation"]["ignore-ensembl-id-version"] else ""
)
id_column = (
"--id-column " + str(config["preparation"]["id-column"]) if config["preparation"]["format"] == "custom" else ""
"--id-column " + str(config["preparation"]["id-column"])
if config["preparation"]["format"] == "custom"
else ""
)

shell(
Expand Down

0 comments on commit 2fcf1bf

Please sign in to comment.