Skip to content
Snippets Groups Projects
Commit f4b48e0b authored by Venkat Malladi's avatar Venkat Malladi
Browse files

Fix test.

parent eeb76613
Branches
Tags
1 merge request!6Resolve "Bam Stats and Filter"
Pipeline #1060 passed with stage
in 1 hour, 43 minutes, and 16 seconds
...@@ -14,11 +14,11 @@ def test_map_qc_singleend(): ...@@ -14,11 +14,11 @@ def test_map_qc_singleend():
filtered_reads_report = test_output_path + 'ENCFF646LXU.filt.nodup.flagstat.qc' filtered_reads_report = test_output_path + 'ENCFF646LXU.filt.nodup.flagstat.qc'
samtools_report = open(filtered_reads_report).readlines() samtools_report = open(filtered_reads_report).readlines()
assert '64962570 + 0 in total' in samtools_report[0] assert '64962570 + 0 in total' in samtools_report[0]
assert '64962570 + 0 mapped (100% : N/A)' in samtools_report[4] assert '64962570 + 0 mapped (100.00%:N/A)' in samtools_report[4]
library_complexity = test_output_path + 'ENCFF646LXU.filt.nodup.pbc.qc' library_complexity = test_output_path + 'ENCFF646LXU.filt.nodup.pbc.qc'
df_library_complexity = pd.read_csv(library_complexity, sep='\t') df_library_complexity = pd.read_csv(library_complexity, sep='\t')
assert df_library_complexity["NRF"].iloc[0] == 0.926192 assert df_library_complexity["NRF"].iloc[0] == 0.926192
assert df_library_complexity["PBC1"].iloc[0] == 0.926775 assert df_library_complexity["PBC1"].iloc[0] == 0.926775
assert df_library_complexity["PBC2"].iloc[0] == 13.706885 assert df_library_complexity["PBC2"].iloc[0] == 13.706885
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment