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

Assigning barcodes with plp.build_plps, KeyError 'number' #2

Open
Sverreg opened this issue Nov 25, 2023 · 2 comments
Open

Assigning barcodes with plp.build_plps, KeyError 'number' #2

Sverreg opened this issue Nov 25, 2023 · 2 comments

Comments

@Sverreg
Copy link

Sverreg commented Nov 25, 2023

The final step of the PLP_Design notebook throws a KeyError. All previous cells ran successfully. In the attached
example I get the specific_seqs_final from the file, to avoid having to run the 2hr+ preceding cells again; I hope this is the correct file, it at least results in the same error, which seems to be pandas looking for a column "number" (in Lprobe_Ver2..) that doesn't exist. Lprobe_Ver2.csv was copied from the example directory in this repository.

specific_targets_final.csv

keyerrornumber

@Sverreg
Copy link
Author

Sverreg commented Nov 25, 2023

I managed to run it with the customized option by changing the separator to ; for the L_probe_library read_csv in probedesign.py. Not sure why this file was ; separated, if it happened on my end when downloading and opening (Ubuntu 22.04), or in the original file from the github repo. Still does not run with the start option.

483: sbh=pd.read_csv(L_probe_library, sep=";")

@mgcizzu
Copy link
Collaborator

mgcizzu commented Jan 31, 2024

Hi Sverre,
I had forgot about this issue, sorry. You're right. I uploaded a new Lprobe file with the corrected format (including the "number" column that was somehow missing from the previous one). Now it should work with all the options.
Apologies again for the slow fix.
Marco

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