Skip to content

Commit

Permalink
Merge branch 'release_v0.3.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
konrad committed Jul 20, 2014
2 parents c60c6cf + 38f3303 commit a8f43b1
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
v0.3.3 (2014-07-20)
- Fix bug in mapping stats table generation
- Add further mapping success value (use reads that are long enogh
after read processing as reference)
- Improve Makefile
v0.3.2 (2014-07-12)
- Add quality trimming and adapter clipping (for reviewer Matt
MacManes)
Expand Down
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ new_release:
@echo "* Please do this manually:"
@echo "* ------------------------"
@echo "* Create/checkout a release branch"
@echo " git branch release_v0.3.X"
@echo " git checkout release_v0.3.X"
@echo "* Change bin/reademption"
@echo "* Change setup.py"
@echo "* Change docs/source/conf.py"
Expand Down
2 changes: 1 addition & 1 deletion bin/reademption
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ __author__ = "Konrad Foerstner <[email protected]>"
__copyright__ = "2011-2014 by Konrad Foerstner <[email protected]>"
__license__ = "ISC license"
__email__ = "[email protected]"
__version__ = "0.3.2"
__version__ = "0.3.3"

def main():
parser = argparse.ArgumentParser()
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
# The short X.Y version.
version = '0.3'
# The full version, including alpha/beta/rc tags.
release = '0.3.2'
release = '0.3.3'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
16 changes: 13 additions & 3 deletions reademptionlib/readalignerstatstable.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ def _add_global_countings(self):
self._total_alignment_stat_numbers("no_of_alignments")),
("Total no. of split alignments",
self._total_alignment_stat_numbers("no_of_split_alignments")),
("Percentage of aligned reads (compared to total input reads)",
self._perc_aligned_reads()),
("Percentage of aligned reads (compared to no. of input reads)",
self._perc_aligned_reads_all_input()),
("Percentage of aligned reads (compared to no. of long enough reads)",
self._perc_aligned_reads_all_long_enough()),
("Percentage of uniquely aligned reads (in relation to all aligned "
"reads)", self._perc_uniquely_aligned_reads())]:
self._table.append([title] + data)
Expand Down Expand Up @@ -84,13 +86,21 @@ def _get_read_process_numbers(self, attribute):
return [self._read_processing_stats[lib][attribute]
for lib in self._libs]

def _perc_aligned_reads(self):
def _perc_aligned_reads_all_input(self):
return [
round(self._calc_percentage(aligned_reads, total_reads), 2)
for aligned_reads, total_reads in
zip(self._total_alignment_stat_numbers(
"no_of_aligned_reads", round_nums=False),
self._get_read_process_numbers("total_no_of_reads"))]

def _perc_aligned_reads_all_long_enough(self):
return [
round(self._calc_percentage(aligned_reads, total_reads), 2)
for aligned_reads, total_reads in
zip(self._total_alignment_stat_numbers(
"no_of_aligned_reads", round_nums=False),
self._get_read_process_numbers("long_enough"))]

def _perc_uniquely_aligned_reads(self):
return [
Expand Down
1 change: 1 addition & 0 deletions reademptionlib/readprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def _process_single_end(self, input_fh, output_fh):
if clipped_seq_len < self._min_read_length:
self._stats["too_short"] += 1
continue
self._stats["long_enough"] += 1
self._stats["read_length_before_processing_and_freq"][
raw_seq_len] += 1
self._stats["read_length_after_processing_and_freq"][
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='READemption',
version='0.3.2',
version='0.3.3',
packages=['reademptionlib', 'tests'],
author='Konrad U. Förstner',
author_email='[email protected]',
Expand Down

0 comments on commit a8f43b1

Please sign in to comment.