Skip to content

Commit 6b55ca2

Browse files
Merge pull request #118 from databio/dev
Release 0.7.1
2 parents fcd8291 + 7e2f8aa commit 6b55ca2

File tree

6 files changed

+22
-19
lines changed

6 files changed

+22
-19
lines changed

bedboss/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.7.0"
1+
__version__ = "0.7.1"

bedboss/bedboss.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,8 @@ def insert_pep(
466466
m.print_error(f"Failed samples: {failed_samples}")
467467
if stop_pipeline:
468468
pm.stop_pipeline()
469+
470+
m.print_success(f"Processing of '{pep.name}' completed successfully")
469471
return None
470472

471473

bedboss/bedmaker/bedmaker.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,17 @@
1313

1414
from bedboss.bedclassifier.bedclassifier import get_bed_classification
1515
from bedboss.bedmaker.const import (
16-
BED_TO_BIGBED_PROGRAM,
1716
BEDGRAPH_TEMPLATE,
1817
BIGBED_FILE_NAME,
1918
BIGBED_TEMPLATE,
2019
BIGBED_TO_BED_PROGRAM,
2120
BIGWIG_TEMPLATE,
22-
QC_FOLDER_NAME,
2321
WIG_TEMPLATE,
2422
)
2523
from bedboss.const import MAX_FILE_SIZE, MAX_REGION_NUMBER, MIN_REGION_WIDTH
2624
from bedboss.bedmaker.models import BedMakerOutput, InputTypes
2725
from bedboss.bedmaker.utils import get_chrom_sizes
28-
from bedboss.bedqc.bedqc import bedqc
2926
from bedboss.exceptions import BedBossException, RequirementsException, QualityException
30-
from bedboss.utils import cleanup_pm_temp
3127

3228
_LOGGER = logging.getLogger("bedboss")
3329

@@ -132,7 +128,7 @@ def make_bed(
132128
bed_obj = bbclient.add_bed_to_cache(input_file)
133129
bed_id = bed_obj.identifier
134130
output_path = bbclient.seek(bed_id)
135-
except FileNotFoundError as e:
131+
except BaseException as e:
136132
raise BedBossException(f"File not found: {input_file} Error: {e}")
137133

138134
else:

bedboss/cli.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,14 @@ def run_pep(
197197
"""
198198
from bedboss.bedboss import insert_pep
199199

200+
pm = create_pm(
201+
outfolder=outfolder,
202+
multi=multi,
203+
recover=recover,
204+
dirty=dirty,
205+
pipeline_name=pep.replace("/", "_").replace(":", "_"),
206+
)
207+
200208
insert_pep(
201209
bedbase_config=bedbase_config,
202210
output_folder=outfolder,
@@ -218,15 +226,11 @@ def run_pep(
218226
standardize_pep=standardize_pep,
219227
lite=lite,
220228
rerun=rerun,
221-
pm=create_pm(
222-
outfolder=outfolder,
223-
multi=multi,
224-
recover=recover,
225-
dirty=dirty,
226-
pipeline_name=pep.replace("/", "_").replace(":", "_"),
227-
),
229+
pm=pm,
228230
)
229231

232+
pm.stop_pipeline()
233+
230234

231235
@app.command(help="Run unprocessed files, or reprocess them")
232236
def reprocess_all(

requirements/requirements-all.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ peppy>=0.40.7
55
yacman>=0.8.4
66
requests>=2.28.2
77
piper>=v0.14.3
8-
bbconf>=0.11.0
8+
bbconf>=0.11.1
99
# bbconf @ git+https://github.com/databio/bbconf.git@new_bed_compilance#egg=bbconf
1010
refgenconf>=0.12.2
1111
pandas>=2.0.0

scripts/bbuploader/main.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ def another_test():
4040

4141
time1 = time.time()
4242
upload_gse(
43-
gse="gse261411",
43+
# gse="gse261411",
4444
# gse="gse261536",
4545
# gse="gse274130",
4646
# Genome hg19 and mm10
4747
# gse="gse280839",
48-
# gse="gse246900", ## -- this is good. allways using it
48+
gse="gse246900", ## -- this is good. allways using it
4949
# gse="gse106049", # This is interesting reference genome.
5050
# gse="gse292153", # This is interesting reference genome.
5151
# gse="gse247593", # Big dataset
@@ -60,7 +60,7 @@ def another_test():
6060
bedbase_config="/home/bnt4me/virginia/repos/bbuploader/config_db_local.yaml",
6161
outfolder="/home/bnt4me/virginia/repos/bbuploader/data",
6262
# genome="HG38",
63-
# rerun=True,
63+
rerun=True,
6464
run_failed=True,
6565
run_skipped=True,
6666
reinit_skipper=True,
@@ -73,11 +73,12 @@ def another_test():
7373

7474

7575
if __name__ == "__main__":
76-
runn()
76+
# runn()
7777

78-
# another_test()
78+
another_test()
7979
# upload_time()
8080

8181
## cmd
8282
# bedboss geo upload-all --outfolder /home/bnt4me/virginia/repos/bbuploader/data --start-date 2025/02/23 --end-date 2025/02/26 --no-use-skipper --lite --bedbase-config /home/bnt4me/virginia/repos/bbuploader/config_db_local.yaml --no-use-skipper --no-preload
8383
##
84+
# bedboss run-pep --pep databio/excluderanges:default --outfolder /home/bnt4me/virginia/bedbase_output/ --bedbase-config /home/bnt4me/virginia/repos/bbuploader/config_db_local.yaml

0 commit comments

Comments
 (0)