tabtk 1.0.3__tar.gz → 1.0.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tabtk-1.0.3 → tabtk-1.0.4}/PKG-INFO +1 -1
- {tabtk-1.0.3 → tabtk-1.0.4}/tabtk/__init__.py +1 -1
- {tabtk-1.0.3 → tabtk-1.0.4}/tabtk/tabtk.py +6 -4
- {tabtk-1.0.3 → tabtk-1.0.4}/tabtk.egg-info/PKG-INFO +1 -1
- {tabtk-1.0.3 → tabtk-1.0.4}/LICENSE +0 -0
- {tabtk-1.0.3 → tabtk-1.0.4}/README.md +0 -0
- {tabtk-1.0.3 → tabtk-1.0.4}/pyproject.toml +0 -0
- {tabtk-1.0.3 → tabtk-1.0.4}/setup.cfg +0 -0
- {tabtk-1.0.3 → tabtk-1.0.4}/tabtk/__main__.py +0 -0
- {tabtk-1.0.3 → tabtk-1.0.4}/tabtk.egg-info/SOURCES.txt +0 -0
- {tabtk-1.0.3 → tabtk-1.0.4}/tabtk.egg-info/dependency_links.txt +0 -0
- {tabtk-1.0.3 → tabtk-1.0.4}/tabtk.egg-info/entry_points.txt +0 -0
- {tabtk-1.0.3 → tabtk-1.0.4}/tabtk.egg-info/requires.txt +0 -0
- {tabtk-1.0.3 → tabtk-1.0.4}/tabtk.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tabtk
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.4
|
|
4
4
|
Summary: tabtk: A toolkit for sequence similarity analysis based on tabular data
|
|
5
5
|
Author-email: Chrispin Chaguza <chrispin.chaguza@gmail.com>
|
|
6
6
|
Maintainer-email: Chrispin Chaguza <chrispin.chaguza@gmail.com>
|
|
@@ -181,17 +181,19 @@ def blastSimilarity(cmdValues):
|
|
|
181
181
|
blastData = pd.read_csv(tmpOut2,delimiter="\t",dtype={'pident': float,'qcovs': float})
|
|
182
182
|
blastData["tmp"] = blastData.apply(lambda x: (x["qcovs"] * x["pident"])/100,axis=1)
|
|
183
183
|
|
|
184
|
+
blastDataR = blastData[["qseqid","sseqid","tmp"]].groupby(['qseqid','sseqid']).agg({'tmp':'mean'})
|
|
185
|
+
blastDataR = blastDataR.reset_index()
|
|
186
|
+
|
|
184
187
|
blastData["qseqidR"] = blastData.apply(lambda x: x["qseqid"] if x["qseqid"] > x["sseqid"] else x["sseqid"],axis=1)
|
|
185
188
|
blastData["sseqidR"] = blastData.apply(lambda x: x["sseqid"] if x["qseqid"] > x["sseqid"] else x["qseqid"],axis=1)
|
|
186
189
|
|
|
187
190
|
blastData["qseqid"] = blastData["qseqidR"]
|
|
188
191
|
blastData["sseqid"] = blastData["sseqidR"]
|
|
189
192
|
|
|
190
|
-
|
|
191
|
-
blastDataR =
|
|
193
|
+
blastDataR = blastData[["qseqid","sseqid","tmp"]].groupby(['qseqid','sseqid']).agg({'tmp':'min'})
|
|
194
|
+
blastDataR = blastDataR.reset_index()
|
|
192
195
|
|
|
193
|
-
|
|
194
|
-
blastDataFinal = blastData[["sseqid","qseqid","cov"]].rename(columns={"sseqid":"seq1","qseqid":"seq2","cov":"pid"}).values.tolist()
|
|
196
|
+
blastDataFinal = blastDataR[["sseqid","qseqid","tmp"]].rename(columns={"sseqid":"seq1","qseqid":"seq2","tmp":"pid"}).values.tolist()
|
|
195
197
|
|
|
196
198
|
bar = ChargingBar("Cleaning temporary files", max=len(fileNames))
|
|
197
199
|
for fileName in tmpFileNames:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tabtk
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.4
|
|
4
4
|
Summary: tabtk: A toolkit for sequence similarity analysis based on tabular data
|
|
5
5
|
Author-email: Chrispin Chaguza <chrispin.chaguza@gmail.com>
|
|
6
6
|
Maintainer-email: Chrispin Chaguza <chrispin.chaguza@gmail.com>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|