Skip to content

py-ard issues a warning on the 3.47.0 version of IMGT/HLA #144

@mmaiers-nmdp

Description

@mmaiers-nmdp
08:31 $ pyard --gl A*02:AF -r lgx
A*02:01

(venv) ✔ ~/src/bit/togl/py-ard/pyard [master|✚ 1] 
08:35 $ pyard --gl A*02:AF -r lgx -v 3.46.0
A*02:01

(venv) ✔ ~/src/bit/togl/py-ard/pyard [master|✚ 1] 
08:36 $ pyard --gl A*02:AF -r lgx -v 3.47.0
/Volumes/Fat/Dropbox/MacBookPro/2020/src/bit/togl/venv/lib/python3.9/site-packages/pyard/data_repository.py:392: ParserWarning: Length of header or names does not match length of data. This leads to a loss of data with index_col=False.
  df_sero = pd.read_csv(rel_dna_ser_url, sep=';', skiprows=6,
/Volumes/Fat/Dropbox/MacBookPro/2020/src/bit/togl/venv/lib/python3.9/site-packages/pyard/data_repository.py:398: SettingWithCopyWarning: 
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value instead

See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
  df_sero['Allele'] = df_sero['Locus'] + df_sero['Allele']
A*02:01

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions