Skip to content

Commit 7f6f27b

Browse files
author
Tobias Andermann
committed
updated recipe
1 parent d729f21 commit 7f6f27b

File tree

4 files changed

+34
-25
lines changed

4 files changed

+34
-25
lines changed

build/lib/secapr/_version.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88

99
version_json = '''
1010
{
11-
"date": "2022-03-31T19:57:19+0200",
12-
"dirty": true,
11+
"date": "2022-04-11T12:12:59+0200",
12+
"dirty": false,
1313
"error": null,
14-
"full-revisionid": "1dd1190c2db1975140823836653618bcbfc812e8",
15-
"version": "2.2.3+13.g1dd1190.dirty"
14+
"full-revisionid": "d729f215e555404d7c7213d5c172677002ebdafb",
15+
"version": "2.2.3+15.gd729f21"
1616
}
1717
''' # END VERSION_JSON
1818

build/lib/secapr/clean_reads.py

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -124,18 +124,27 @@ def add_arguments(parser):
124124

125125

126126
def longest_common_substring(s1, s2):
127-
m = [[0] * (1 + len(s2)) for i in range(1 + len(s1))]
128-
longest, x_longest = 0, 0
129-
for x in range(1, 1 + len(s1)):
130-
for y in range(1, 1 + len(s2)):
131-
if s1[x - 1] == s2[y - 1]:
132-
m[x][y] = m[x - 1][y - 1] + 1
133-
if m[x][y] > longest:
134-
longest = m[x][y]
135-
x_longest = x
136-
else:
137-
m[x][y] = 0
138-
return s1[x_longest - longest: x_longest]
127+
m = []
128+
for i, letter in enumerate(list(s1)):
129+
if letter == list(s2)[i]:
130+
m.append(letter)
131+
else:
132+
break
133+
return ''.join(m)
134+
135+
# def longest_common_substring(s1, s2):
136+
# m = [[0] * (1 + len(s2)) for i in range(1 + len(s1))]
137+
# longest, x_longest = 0, 0
138+
# for x in range(1, 1 + len(s1)):
139+
# for y in range(1, 1 + len(s2)):
140+
# if s1[x - 1] == s2[y - 1]:
141+
# m[x][y] = m[x - 1][y - 1] + 1
142+
# if m[x][y] > longest:
143+
# longest = m[x][y]
144+
# x_longest = x
145+
# else:
146+
# m[x][y] = 0
147+
# return s1[x_longest - longest: x_longest]
139148

140149
def read_count(input):
141150
# Use bash command to count the read number

recipe/meta.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
{% set version = "2.1.0" %}
1+
{% set version = "2.2.6" %}
22

33
package:
44
name: secapr
55
version: {{ version }}
66

77
source:
88
url: https://github.com/AntonelliLab/seqcap_processor/archive/v{{ version }}.tar.gz
9-
sha256: bc69147dbc452acf56dc75452c5cadcdaeeeda1d0a3a81c5c3667e0018924031
9+
sha256: 63a67d6bc5d139b2910e562dc7969e7c8374c01720af5319a0f7a9d06c5983c0
1010

1111
build:
1212
noarch: generic
@@ -17,24 +17,24 @@ build:
1717

1818
requirements:
1919
host:
20-
- python 3.7
20+
- python
2121
- pip
2222

2323
run:
24-
- python
24+
- python=3.8
2525
- pandas
2626
- matplotlib-base
27-
- biopython=1.76
27+
- biopython
2828
- trimmomatic
2929
- fastqc
30-
- abyss
31-
- spades
30+
- fastp=0.23
31+
- spades=3.15.2
3232
- blast
3333
- mafft
3434
- muscle
3535
- emboss
3636
- bwa
37-
- samtools=1.9
37+
- samtools==1.3.1
3838
- trimal
3939

4040
test:

secapr.egg-info/PKG-INFO

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Metadata-Version: 2.1
22
Name: secapr
3-
Version: 2.2.3+13.g1dd1190.dirty
3+
Version: 2.2.3+15.gd729f21
44
Summary: Process sequence-capture fastq files into alignments for phylogenetic analyses
55
Home-page: https://github.com/AntonelliLab/seqcap_processor
66
Author: Tobias Andermann

0 commit comments

Comments
 (0)