Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Kofman committed Nov 20, 2024
1 parent 8cd771b commit e250352
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions marine.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def generate_depths_with_samtools(output_folder, bam_filepaths):
for i, bam_filepath in enumerate(bam_filepaths):
depth_command = (
"echo 'running samtools depth on {}...';"
"samtools depth -b {}/combined.bed {} >> {}/coverage/depths.txt"
"samtools depth -a -g 0x704 -b {}/combined.bed {} >> {}/coverage/depths.txt"
).format(bam_filepath, output_folder, bam_filepath, output_folder)
all_depth_commands.append(depth_command)

Expand Down Expand Up @@ -888,7 +888,7 @@ def check_samtools():
"\tFor single-cell: \t{} contigs at at time\n".format(num_per_sublist)
])

if not barcode_tag and not paired_end:
if not paired_end:
# Check to see that samtools is available in the environment
check_samtools()

Expand Down
3 changes: 2 additions & 1 deletion src/read_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ def get_read_information(read, contig, barcode_tag='CB', verbose=False, stranded
if read.is_duplicate:
return 'is_duplicate', [], {}


if read.is_supplementary:
return 'is_supplementary', [], {}
#if 'N' in cigarstring:
# return 'N', [], {}

Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2889,7 +2889,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 12,
"id": "f5c3ed3e-13dd-4399-924e-3d1ac17ce387",
"metadata": {},
"outputs": [
Expand Down

0 comments on commit e250352

Please sign in to comment.