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

Tcrdist working with sample data but not with my data #94

Closed
rutha32 opened this issue Nov 2, 2023 · 2 comments
Closed

Tcrdist working with sample data but not with my data #94

rutha32 opened this issue Nov 2, 2023 · 2 comments

Comments

@rutha32
Copy link

rutha32 commented Nov 2, 2023

tcrdist_alpha_sample.pdf

Hi, tcrdist works fine when I use the sample data (dash.csv), but when I try it with other datasets, I'm getting errors.

These are my columns: 'subject', 'epitope', 'count', 'v_a_gene', 'd_call', 'j_a_gene',
'cdr3_a_aa', 'cdr3_a_nucseq', 'junction', 'decombinator_id', 'rev_comp',
'productive', 'sequence_aa', 'cdr1_aa', 'cdr2_aa', 'chain', 'clone_id',
'time'],
dtype='object'

this is the error I get
ValueError: zero-size array to reduction operation maximum which has no identity

My code
import pandas as pd

file_path = r'C:\Users\pythonProject\ResearchProject\alpha_TCR_all_sample_100.csv'

df = pd.read_csv(file_path)

df.head()
from tcrdist.repertoire import TCRrep

tr = TCRrep(
cell_df=df,
organism='human',
chains=['alpha'],
db_file='alphabeta_gammadelta_db.tsv'
)

pw_alpha = tr.pw_alpha

Thanks

@kmayerb
Copy link
Owner

kmayerb commented Nov 3, 2023 via email

@rutha32
Copy link
Author

rutha32 commented Nov 6, 2023

Hi thanks for the reply, I got it working when I added the "*01". I removed the some of the columns and only kept the core columns count , v_a_gene, j_a_gene and cdr3_a_aa.

@rutha32 rutha32 closed this as completed Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants