Skip to content

Commit

Permalink
Update test_SampleSheet.py
Browse files Browse the repository at this point in the history
  • Loading branch information
CuijieLu committed Feb 29, 2024
1 parent 1efc786 commit d8ea275
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test_SampleSheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,38 +10,38 @@ def test_mixed_10X_barcodes():
print(ss_list[2].df_ss_header)

def test_only_10XSI_barcodes():
x = SampleSheet("test/SampleSheet_10X_SI.csv")
x = SampleSheet("/home/runner/work/igo-demux/igo-demux/test/SampleSheet_10X_SI.csv")
print("Calling split sample sheet.")
ss_list = x.split_sample_sheet()
print("After split sample sheet.")
print(ss_list[0].df_ss_data.to_string())
assert(len(ss_list) == 1)

def test_read_10X_sample_sheet():
samplesheet = SampleSheet("test/SampleSheet_10X_SI.csv")
samplesheet = SampleSheet("./test/SampleSheet_10X_SI.csv")
corrected = convert_SI_barcodes(samplesheet)
print(corrected.df_ss_data.to_string())
assert(len(corrected.df_ss_data) == 16)

def test_read_empty_sample_sheet():
x = SampleSheet("test/empty_sample_sheet.csv")
x = SampleSheet("/test/empty_sample_sheet.csv")
print("Success")

def test_read_blank_sample_sheet():
with pytest.raises(Exception):
x = SampleSheet("test/blank_sample_sheet.csv")
x = SampleSheet("/home/runner/work/igo-demux/igo-demux/test/blank_sample_sheet.csv")

def test_read_SE_sample_sheet():
x = SampleSheet("test/SampleSheet_PEPE.csv")
x = SampleSheet("/home/runner/work/igo-demux/igo-demux/test/SampleSheet_PEPE.csv")
print("Success")

def test_WGS_only_not_split():
x = SampleSheet("test/DIANA_0434.csv")
x = SampleSheet("/home/runner/work/igo-demux/igo-demux/test/DIANA_0434.csv")
ss_list = x.split_sample_sheet()
assert(len(ss_list) == 1)

def test_barcode_read_lengths():
x = SampleSheet("test/SampleSheet.csv")
x = SampleSheet("/home/runner/work/igo-demux/igo-demux/test/SampleSheet.csv")
assert (x.read_lengths[0] == 151)
assert (x.read_lengths[1] == 151)

Expand Down

0 comments on commit d8ea275

Please sign in to comment.