Skip to content

Commit

Permalink
preprocess_tx
Browse files Browse the repository at this point in the history
  • Loading branch information
ploy-np committed Mar 2, 2021
1 parent e4afcfd commit ac8014f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ xPore is described in detail in a preprint (https://www.biorxiv.org/content/10.1

### Release History

The current release is xPore v1.0.0.
The current release is xPore v1.0.

Please refer to the github release history for previous releases: https://github.com/GoekeLab/xpore/releases

Expand Down
1 change: 1 addition & 0 deletions docs/source/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ Below is how it looks like::
prefiltering:
method: t-test
threshold: 0.1
stopping_criteria: 0.0001

Note that if high accuracy is required, the ``prefiltering`` section should be removed and the processing time is accordingly longer.
See the :ref:`Configuration file page <configuration>` for details.
Expand Down
4 changes: 2 additions & 2 deletions xpore/scripts/dataprep.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,7 @@ def parallel_preprocess_tx(eventalign_filepath,out_dir,n_processes,readcount_min
break
if readcount>=readcount_min:
task_queue.put((tx_id,data_dict,out_paths)) # Blocked if necessary until a free slot is available.
tx_ids_processed += [tx_id]

# Put the stop task into task_queue.
task_queue = helper.end_queue(task_queue,n_processes)
Expand Down Expand Up @@ -548,7 +549,6 @@ def preprocess_tx(tx_id,data_dict,out_paths,locks):

try:
assert len(set(reference_kmer_array)) == 1
assert {position} == set(g_positions_array)
except:
asserted = False
break
Expand All @@ -557,7 +557,7 @@ def preprocess_tx(tx_id,data_dict,out_paths,locks):
data[position] = {kmer: list(np.around(y_array,decimals=2))}

# write to file.
log_str = '%s: Data preparation ... Done.' %(tx_id)
log_str = '%s: %s.' %(tx_id,asserted)
with locks['json'], open(out_paths['json'],'a') as f:
pos_start = f.tell()
f.write('{')
Expand Down

0 comments on commit ac8014f

Please sign in to comment.