Skip to content

Commit 19d96f0

Browse files
committed
Merge branch 'deps_upgrade' into 'dev'
Deps upgrade: bedtools==2.31; porechop==artic; pandas>=2.0 support See merge request research/pomoxis!167
2 parents f0bb3b3 + 817b612 commit 19d96f0

File tree

5 files changed

+14
-11
lines changed

5 files changed

+14
-11
lines changed

CHANGELOG.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,18 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7-
## Unreleased
8-
### Added
9-
- Option `-C` for `mini_align` to copy fastx comments into bam tags
10-
11-
## [v0.3.13] - 2023-06-12
7+
## [v0.3.13] - 2023-06-23
128
### Changed
139
- `subsample_bam`: `--force_low_coverage` saves contigs with coverage below the target
1410
- `subsample_bam`: `--force_non_primary` saves multimapping for the subsampled reads
1511
- `coverage_from_bam`: `--primary_only` considers only primary reads when computing the depth
12+
- `bedtools`: upgraded to v2.31
13+
- `porechop`: switched to using Artic version
14+
### Added
15+
- Option `-C` for `mini_align` to copy fastx comments into bam tags
16+
### Fixed
17+
- Minor compatibility fixes to support `pandas>=2.0`
18+
1619
## [v0.3.12] - 2023-02-09
1720
### Changed
1821
- `subsample_bam`: `--quality` filtering now uses mean error probability, not mean of quality scores as previously.

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ $(BINCACHEDIR)/seqkit: | $(BINCACHEDIR) $(BINBUILDDIR)
121121
cp ${BINBUILDDIR}/seqkit $@
122122

123123

124-
#BEDTOOLSVER=2.29.0 Changed to 2.30.0 on 6 December 2021
125-
BEDTOOLSVER=2.30.0
124+
#BEDTOOLSVER=2.31.0 on 7th June 2023
125+
BEDTOOLSVER=2.31.0
126126
$(BINCACHEDIR)/bedtools: | $(BINCACHEDIR) $(BINBUILDDIR)
127127
@echo Making $(@F)
128128
if [ ! -e ${BINBUILDDIR}/bedtools-2.29.0.tar.gz ]; then \

pomoxis/assess_homopolymers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def plot_relative_lengths(data, fname):
127127
fig, axes = plt.subplots(
128128
ncols=len(cols), nrows=len(rows), sharex=True,
129129
figsize=(4 * len(cols), 2 * len(rows)), squeeze=False)
130-
for rl, rl_df in data.groupby(['ref_len']):
130+
for rl, rl_df in data.groupby('ref_len'):
131131
i = rows.index(rl)
132132
for qb, qb_df in rl_df.groupby('q_base'):
133133
j = cols.index(qb)
@@ -168,7 +168,7 @@ def get_heatmap(data, data_comp):
168168
df_comp[np.isnan(df_comp)] = 0
169169
df_comp = df_comp.reindex(column_reindex, axis=1)
170170

171-
df_all = df_comp.sum(level='ref_len', axis=1)
171+
df_all = df_comp.groupby(level='ref_len', axis=1).sum()
172172
df_all.columns = pd.MultiIndex.from_product((['ATGC',], df_all.columns),
173173
names=['q_base', 'ref_len'])
174174

pomoxis/catalogue_errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ def plot_summary(df, outdir, prefix, ref_len):
703703
fig.subplots_adjust(left=0.3)
704704
y_pos = np.arange(len(df) + 1)
705705
no_error_score = -10 * np.log10(1/ref_len)
706-
ax.barh(y_pos, df['remaining_err_rate_q'].append(pd.Series(no_error_score)), align='center', color='green', ecolor='black')
706+
ax.barh(y_pos, np.concatenate([df['remaining_err_rate_q'].to_numpy(), [no_error_score]]), align='center', color='green', ecolor='black')
707707
ax.set_xlabel('Q(Accuracy)')
708708
ax.set_ylabel('Error Class')
709709
ax.set_ylim((y_pos[0]-0.5, y_pos[-1]+0.5))

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ ncls
77
numpy
88
pandas
99
pysam >= 0.15.4
10-
git+https://github.com/rrwick/Porechop
10+
porechop @ git+https://github.com/artic-network/porechop

0 commit comments

Comments
 (0)