Skip to content

Commit

Permalink
Rm trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanjameskennedy committed Oct 15, 2024
1 parent b2ef9a3 commit 34ffbce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jasentool/missing.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def parse_sample_sheet(sample_sheet, restore_dir, id_seqrun_dict):
#print(f"WARN: The following sample({sample_id}) seqrun ({seqrun}) doesn't match cgviz ({id_seqrun_dict[sample_id]})")
continue
except KeyError:
#print(f"WARN: The following sample({sample_id}) isn't OK'd in cgviz")
#print(f"WARN: The following sample({sample_id}) isn't OK'd in cgviz")
continue
species = line.split(",")[-1].split("_")[2]
try:
Expand Down Expand Up @@ -233,14 +233,14 @@ def check_format(fpath):
return fpath.rstrip("Data/Intensities/BaseCalls/")
print(f"WARN: Base calls for {fpath} cannot be found.")
return fpath

@staticmethod
def get_sample_name(json_fpath):
"""Reads a JSON file and retrieves the 'sample_name' from the JSON structure."""
try:
with open(json_fpath, 'r') as file:
result_json = json.load(file)

sample_name = result_json["sample_name"]
return sample_name
except KeyError as e:
Expand Down

0 comments on commit 34ffbce

Please sign in to comment.