Skip to content

Commit

Permalink
Preprocessing now considers "adapter content" module
Browse files Browse the repository at this point in the history
closes #13
  • Loading branch information
iquasere committed Feb 2, 2021
1 parent 71e2cd1 commit 5e62c05
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions workflow/envs/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set name = "mosca" %}
{% set version = "1.3.0" %}
{% set version = "1.3.1" %}
{% set sha256 = "87cbca039ea9b9c85f417543f2426b2b2acffebe58179878ee6872a32ae949ba" %}

package:
Expand Down Expand Up @@ -40,7 +40,7 @@ requirements:
- svn >=1.9.7
- reportlab >=3.5.45
- openpyxl >=3.0.3
- xlrd >=0.9.0
- xlrd =1.2
- r-rcolorbrewer >=1.1.2
- pandas >=1.1.4
- scikit-learn >=0.23.1
Expand Down
2 changes: 1 addition & 1 deletion workflow/mosca.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import multiprocessing
import sys

__version__ = '1.3.0'
__version__ = '1.3.1'

parser = argparse.ArgumentParser(description="MOSCA's main script")
parser.add_argument("-s", "--snakefile", type=str, default="{}/Snakefile".format(sys.path[0]), help="Snakefile file")
Expand Down
6 changes: 4 additions & 2 deletions workflow/scripts/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ def run_fastqc(self, files, out_dir, extract=True, threads='12'):

def has_adapters(self, fastqc_report):
data = parse_fastqc(fastqc_report)
terms_list = ['Adapter', 'Illumina',
'Primer'] # Terms that appear in FastQC chapter "overrepresented sequences"
if not data['Adapter Content'][0] == 'pass':
return True
terms_list = [
'Adapter', 'Illumina', 'Primer'] # Terms that appear in FastQC chapter "overrepresented sequences"
if not data['Overrepresented sequences'][0] == 'pass':
i = 0
while i < len(data['Overrepresented sequences'][1]['Possible Source']):
Expand Down

0 comments on commit 5e62c05

Please sign in to comment.