Skip to content

Commit

Permalink
bump version to 0.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
PengNi committed Nov 17, 2021
1 parent d236c99 commit ab9b3b9
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
5 changes: 5 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ Release
-------


0.1.4
-----



0.1.3
-----
add ranger optimizer and modify train module,
Expand Down
2 changes: 1 addition & 1 deletion deepsignal_plant/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DEEPSIGNAL_PLANT_VERSION = '0.1.2'
DEEPSIGNAL_PLANT_VERSION = '0.1.3'
2 changes: 1 addition & 1 deletion deepsignal_plant/deepsignal_plant.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def main():
required=False, default=None,
help="region of interest, e.g.: chr1, chr1:0, chr1:0-10000. "
"0-based, half-open interval: [start, end). "
"default None, means processing the whole sites in genome")
"default None, means processing all sites in genome")
se_extraction.add_argument("--positions", action="store", type=str,
required=False, default=None,
help="file with a list of positions interested (must be formatted as tab-separated file"
Expand Down
13 changes: 8 additions & 5 deletions deepsignal_plant/extract_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,15 +513,15 @@ def _extract_preprocess_(motifs, is_dna, reference_path, position_file, regionst
chrom2len = get_contig2len(reference_path)

positions = None
num_poses = 0
if position_file is not None:
positions = _read_position_file(position_file)
num_poses = len(positions)
print("read position file: {}, got {} positions".format(position_file, num_poses))
print("read position file: {}, got {} positions".format(position_file, num_poses))

regioninfo = parse_region_str(regionstr)
chrom, start, end = regioninfo
print("parse region of interest: {}, [{}, {})".format(chrom, start, end))
if regionstr is not None:
chrom, start, end = regioninfo
print("parse region of interest: {}, [{}, {})".format(chrom, start, end))

return motif_seqs, chrom2len, positions, regioninfo

Expand Down Expand Up @@ -567,6 +567,9 @@ def extract_features(fast5_dir, is_recursive, reference_path, is_dna,
print("[main] extract_features starts..")
start = time.time()

if not os.path.isdir(fast5_dir):
raise ValueError("--fast5_dir is not a directory!")

motif_seqs, chrom2len, fast5s_q, len_fast5s, \
positions, regioninfo = _extract_preprocess(fast5_dir, is_recursive,
motifs, is_dna, reference_path,
Expand Down Expand Up @@ -679,7 +682,7 @@ def main():
required=False, default=None,
help="region of interest, e.g.: chr1, chr1:0, chr1:0-10000. "
"0-based, half-open interval: [start, end). "
"default None, means processing the whole sites in genome")
"default None, means processing all sites in genome")
ep_extraction.add_argument("--positions", action="store", type=str,
required=False, default=None,
help="file with a list of positions interested (must be formatted as tab-separated file"
Expand Down

0 comments on commit ab9b3b9

Please sign in to comment.