Skip to content

Commit

Permalink
chore: appease linter
Browse files Browse the repository at this point in the history
  • Loading branch information
BinglanLi committed Nov 13, 2024
1 parent 16e2d61 commit f14210d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions preprocessor/preprocessor/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
}
_missing_pgx_var_suffix = '.missing_pgx_var'


def get_pgx_regions(regions_file: Path):
if regions_file.name.endswith(".bed"):
df_regions = pd.read_csv(regions_file, sep="\t", header=None)
Expand Down Expand Up @@ -705,8 +706,6 @@ def create_regions_file(regions_file: Path, pharmcat_positions_vcf: Path, verbos
f.write(data['chr'] + "\t" + str(data['start'] - 200) + "\t" + str(data['end'] + 200) + "\t" + px + "\n")




def _is_valid_chr(vcf_file: Path) -> bool:
"""
Quick check to see if CHROM column uses our expected chr format.
Expand Down
2 changes: 1 addition & 1 deletion preprocessor/tests/test_preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def test_preprocess():
shutil.copyfile(vcf_file, tmp_vcf)

basename = 'preprocess'
results = preprocess(helpers.pharmcat_positions_file, reference_fasta, pgx_regions,False,
results = preprocess(helpers.pharmcat_positions_file, reference_fasta, pgx_regions, False,
[tmp_vcf], None, basename, tmp_dir, basename, verbose=1)
print(tmp_dir)
files = os.listdir(tmp_dir)
Expand Down

0 comments on commit f14210d

Please sign in to comment.