Skip to content

Commit

Permalink
fix asv discrepancy bug
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisAta committed Oct 23, 2024
1 parent 5b559ea commit b493bfc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,8 @@ def main():
taxa_df = taxa_df.fillna("0")
taxa_df = order_df(taxa_df)

asv_list = taxa_df.ASV.to_list()

amp_reads = [read.strip() for read in list(open(amp, "r"))]
headers = [read.split(" ")[0][1:] for read in list(open(headers, "r"))]
amp_region = ".".join(amp.split(".")[1:3])
Expand All @@ -288,7 +290,7 @@ def main():
counter += 1
line_fwd = line_fwd.strip()

if line_fwd == "0":
if line_fwd == "0" or f"seq_{line_fwd}" not in asv_list:
continue

if headers[counter] in amp_reads:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "mgnify_pipelines_toolkit"
version = "0.1.7"
version = "0.1.8"
readme = "README.md"
license = {text = "Apache Software License 2.0"}
authors = [
Expand Down

0 comments on commit b493bfc

Please sign in to comment.