Skip to content

Commit

Permalink
1.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
TillMacher committed Jan 31, 2022
1 parent 2925c33 commit 0211fa3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
2 changes: 1 addition & 1 deletion apscale_gui/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
##########################################################################################################################
# update version here (will be displayed on the main layout)
# Support for: u = ubuntu, w = windows, m = macintosh
apscale_version = '1.0.6'
apscale_version = '1.0.7'

## check for the latest version of TTT
try:
Expand Down
18 changes: 14 additions & 4 deletions apscale_gui/fastq_eestats.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,20 @@ def fastq_eestats(file, folder, project = None):
## figure 2
## calculate the number of reads per base (i.e. length distriubution)
n_recs = df['Recs'].values.tolist()[0]
len_dist_dict = {}
for i,j in df[['Pos', 'Recs']].values.tolist():
len_dist_dict[i] = n_recs - j
n_recs -= n_recs - j


if len(set(df['Recs'].values.tolist())) != 1:
## if reads have different length, calculate the lenght distributions
len_dist_dict = {}
for i,j in df[['Pos', 'Recs']].values.tolist():
len_dist_dict[i] = n_recs - j
n_recs -= n_recs - j
else:
## if all reads are the same length -> nothing to calculate
len_dist_dict = {}
for i,j in df[['Pos', 'Recs']].values.tolist():
len_dist_dict[i] = n_recs

mean_ee = df['Mean_EE'].values.tolist()
recs = df['Recs'].values.tolist()
ee_1 = len(x_values)*[1]
Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="apscale_gui",
version="1.0.6",
version="1.0.7",
author="Till-Hendrik Macher",
author_email="[email protected]",
description="Advanced Pipeline for Simple yet Comprehensive AnaLysEs of DNA metabarcoding data - Graphical User Interface",
Expand All @@ -15,11 +15,12 @@
packages=setuptools.find_packages(),
license = 'MIT',
install_requires = ['pySimpleGUI >= 4.15.2',
'apscale >= 1.1.1',
'apscale >= 1.2.0',
'demultiplexer >= 1.1.0',
'lastversion >= 1.3.3',
'boldigger >= 1.2.5',
'plotly >= 4.9.0',
'kaleido >= 0.2.1',
'xlsxwriter >= 3.0.2'
],
include_package_data = True,
Expand Down

0 comments on commit 0211fa3

Please sign in to comment.