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

Issues in the DataFrame #16

Open
kroy3 opened this issue Apr 1, 2024 · 0 comments
Open

Issues in the DataFrame #16

kroy3 opened this issue Apr 1, 2024 · 0 comments

Comments

@kroy3
Copy link

kroy3 commented Apr 1, 2024

Hi everyone,

I encountered an issues regarding the FileNotFoundError and tried to slove the error.

If you are working with the following jupyter file:

"AF_Cluster-main\data_sep2022\03_KaiBRS_and_pt_muts\KaiBRS_msas_for_AFclusteru 0_analyze_cluster_enrichments.ipynb"

You might going to be encountered this error:

FileNotFoundError: [Errno 2] No such file or directory: 'KaiBRS_msas_for_AFcluster/preds_3r/KAIBRS_163.a3m'

It is because the 'pdb' column retrieve the file as "preds_3r/KAIBRS_163.a3m"

I replaced it with the following code:

df['pdb'] = df['pdb'].str.replace('preds_3r/KAIBRS_', 'KAIBRS_', regex=False)

@kroy3 kroy3 closed this as completed Apr 1, 2024
@kroy3 kroy3 reopened this Apr 1, 2024
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

1 participant