File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1458,15 +1458,15 @@ def check_fastq_entries(in_file):
1458
1458
stderr = sp .PIPE ,
1459
1459
shell = True ,
1460
1460
encoding = 'utf-8'
1461
- ).stdout . removesuffix ( " \n " ) .split (" " )[0 ]
1461
+ ).stdout [: - 2 ] .split (" " )[0 ]
1462
1462
else :
1463
1463
n_lines = sp .run (
1464
1464
"wc -l {f}" .format (f = in_file ),
1465
1465
stdout = sp .PIPE ,
1466
1466
stderr = sp .PIPE ,
1467
1467
shell = True ,
1468
1468
encoding = 'utf-8'
1469
- ).stdout . removesuffix ( " \n " ) .split (" " )[0 ]
1469
+ ).stdout [: - 2 ] .split (" " )[0 ]
1470
1470
1471
1471
n_reads = int (n_lines )/ 4
1472
1472
return n_reads
@@ -1491,6 +1491,6 @@ def check_bam_entries(in_file):
1491
1491
stdout = sp .PIPE ,
1492
1492
stderr = sp .PIPE ,
1493
1493
encoding = 'utf-8'
1494
- ).stdout . removesuffix ( " \n " )
1494
+ ).stdout [: - 2 ]
1495
1495
1496
1496
return int (n_reads )
You can’t perform that action at this time.
0 commit comments