Skip to content

Commit

Permalink
fixed typos, requirements and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
khoroshevskyi committed Oct 5, 2023
1 parent 7f1cf69 commit 3f5894b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions bedboss/bedstat/bedstat.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,9 @@ def bedstat(
plot_id = plot["name"]
del plot["name"]
data.update({plot_id: plot})

# deleting md5sum, because it is record_identifier
del data["md5sum"]
bbc.bed.report(
record_identifier=bed_digest,
values=data,
Expand Down
6 changes: 3 additions & 3 deletions bedboss/bedstat/tools/regionstat.R
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,13 @@ doItAall <- function(query, fileId, genome, cellMatrix) {
} else {
if (genome %in% c("hg19", "hg38", "mm10")) {
gp = calcPartitionsRef(query, genome)
plotBoth("paritions", plotPartitions(gp))
plotBoth("partitions", plotPartitions(gp))
} else {
partitionList = myPartitionList(gtffile)
gp = calcPartitions(query, partitionList)
plotBoth("paritions", plotPartitions(gp))
plotBoth("partitions", plotPartitions(gp))
}
plots = rbind(plots, getPlotReportDF("paritions", "Regions distribution over genomic partitions"))
plots = rbind(plots, getPlotReportDF("partitions", "Regions distribution over genomic partitions"))
# flatten the result returned by the function above
partiotionNames = as.vector(gp[,"partition"])
partitionsList = list()
Expand Down
2 changes: 1 addition & 1 deletion requirements/requirements-all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ peppy>=0.40.0a4
yacman>=0.8.4
requests>=2.28.2
piper>=0.13.3a1
bbconf>=0.4.0a3
bbconf>=0.4.0a5
refgenconf>=0.12.2
pandas>=1.5.3
ubiquerg>=0.6.2
8 changes: 4 additions & 4 deletions test/test_bedboss.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ def test_stat(self, bedfile, bigbed_file, genome, output_temp_dir):
[
f"{case_name}_cumulative_partitions.png",
f"{case_name}_expected_partitions.pdf",
f"{case_name}_paritions.png",
f"{case_name}_paritions.pdf",
f"{case_name}_partitions.png",
f"{case_name}_partitions.pdf",
f"{case_name}_cumulative_partitions.pdf",
f"{case_name}_chrombins.pdf",
f"{case_name}_widths_histogram.pdf",
Expand Down Expand Up @@ -191,8 +191,8 @@ def test_boss(self, input_file, genome, input_type, output_temp_dir):
[
f"{case_name}_cumulative_partitions.png",
f"{case_name}_expected_partitions.pdf",
f"{case_name}_paritions.png",
f"{case_name}_paritions.pdf",
f"{case_name}_partitions.png",
f"{case_name}_partitions.pdf",
f"{case_name}_cumulative_partitions.pdf",
f"{case_name}_chrombins.pdf",
f"{case_name}_widths_histogram.pdf",
Expand Down

0 comments on commit 3f5894b

Please sign in to comment.