Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt to new format metadata gtdb #22

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Removed encoded parse gtdb metadata
  • Loading branch information
pirovc committed Sep 6, 2024
commit 621eee1beacd14c56a046f9c4509b97336610a7d
5 changes: 1 addition & 4 deletions multitax/gtdbtx.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,7 @@ def _build_translation(self, target_tax, files: list = None, urls: list = None):

for source, fh in fhs.items():
for line in fh:
try:
fields = line.rstrip().split('\t')
except:
fields = line.decode().rstrip().split('\t')
fields = line.rstrip().split('\t')

# skip header
if fields[accession_col] == "accession":
Expand Down