-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- New .csv (V. Clichet) - Completely renamed epitopes in eplets (functions, variables, docstrings, etc ...) - Fixed unit tests (AbV) - Optimised is_eplet_to_be_added function - Fixed Zenodo stuff - Updated CITATION.cff - Better README.md - Fixed ghost alleles
- Loading branch information
1 parent
4938e8e
commit 3c42b7a
Showing
22 changed files
with
4,578 additions
and
4,519 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,22 @@ | ||
cff-version: 1.2.0 | ||
message: "If you use this software, please cite it as below. | ||
Lhotte, R., Usureau, C. & Taupin, J. (2022). Python Epitope Charge Calculator (PECC) package | ||
(Version 0.3.0) [Computer software]. https://doi.org/10.5281/zenodo.7254809" | ||
Lhotte, R., Clichet, V., Usureau, C. & Taupin, J. (2022). Python Eplet Load Calculator (PELC) package | ||
(Version 0.3.1) [Computer software]. https://doi.org/10.5281/zenodo.7254809" | ||
authors: | ||
- family-names: Lhotte | ||
given-names: Romain | ||
orcid: https://orcid.org/0000-0002-6131-5415 | ||
- family-names: Clichet | ||
given-names: Valentin | ||
orcid: | ||
- family-names: Usureau | ||
given-names: Cédric | ||
orcid: | ||
- family-names: Taupin | ||
given-names: Jean-Luc | ||
orcid: https://orcid.org/0000-0002-5766-046X | ||
title: Python Epitope Charge Calculator | ||
version: 0.3.0 | ||
title: Python Eplet Load Calculator | ||
version: 0.3.1 | ||
doi: doi.org/10.5281/zenodo.7254809 | ||
link: https://github.com/MICS-Lab/pecc | ||
date-released: 2022-10-26 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import pandas as pd | ||
|
||
|
||
def _open_epregistry_database(path_to_csv: str, ghost_allele: str, no_eplets: bool = False) -> pd.DataFrame: | ||
""" | ||
:param path_to_csv: path to the csv EpRegistry database file | ||
:param ghost_allele: allele string to be used as a ghost allele (no eplets) | ||
:return: pandas.DataFrame with the EpRegistry database and the ghost allele | ||
""" | ||
|
||
df_db: pd.DataFrame | ||
if no_eplets: | ||
df_db = pd.read_csv(path_to_csv, sep=";", usecols=[0]).set_index("allele") | ||
# add a row to an empty dataframe with concat | ||
df_db = pd.concat([df_db, pd.DataFrame(columns=[], index=[ghost_allele])]) | ||
else: | ||
df_db = pd.read_csv(path_to_csv, sep=";").set_index("allele") | ||
# add row with nan values | ||
df_db.loc[ghost_allele] = float("nan") | ||
|
||
return df_db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.