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

modified: glycan_processing_helpers.py #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
19 changes: 10 additions & 9 deletions glycan_processing_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@
import re

# Glycans by taxonomic levels
df_species = pd.read_csv('pydata/glyco_targets_species_seq_all_V2clean.csv')
df_species.domain = [k.strip() for k in df_species.domain.values.tolist()]
df_species.kingdom = [k.strip() for k in df_species.kingdom.values.tolist()]
df_species.phylum = [k.strip() for k in df_species.phylum.values.tolist()]
df_species['class'] = [k.strip() for k in df_species['class'].values.tolist()]
df_species.order = [k.strip() for k in df_species.order.values.tolist()]
df_species.family = [k.strip() for k in df_species.family.values.tolist()]
df_species.genus = [k.strip() for k in df_species.genus.values.tolist()]
df_species.target = [str(k) for k in df_species.target.values.tolist()]
#df_species = pd.read_csv('pydata/glyco_targets_species_seq_all_V2clean.csv')
#df_species.domain = [k.strip() for k in df_species.domain.values.tolist()]
#df_species.kingdom = [k.strip() for k in df_species.kingdom.values.tolist()]
#df_species.phylum = [k.strip() for k in df_species.phylum.values.tolist()]
#df_species['class'] = [k.strip() for k in df_species['class'].values.tolist()]
#df_species.order = [k.strip() for k in df_species.order.values.tolist()]
#df_species.family = [k.strip() for k in df_species.family.values.tolist()]
#df_species.genus = [k.strip() for k in df_species.genus.values.tolist()]
#df_species.target = [str(k) for k in df_species.target.values.tolist()]
df_species = pd.read_csv('pydata/v2_glycobase.csv')

# Lists of possible bonds and sugars
with open('pydata/all_bonds.pkl','rb') as file:
Expand Down
Loading