a-r-j / graphein

Protein Graph Library
https://graphein.ai/
MIT License
1.02k stars 131 forks source link

Fix cluster file loading bug in `pdb_data.py` #396

Closed amorehead closed 4 months ago

amorehead commented 4 months ago

Reference Issues/PRs

Fixes a cluster file loading bug in pdb_data.py,

What does this implement/fix? Explain your changes

The PDBManager's from_fasta() function already prefixes its input filename argument with self.root_dir /, so one needs to remove this prefix in functions that call from_fasta() (to avoid a double prefix that causes a file not found error).

What testing did you do to verify the changes in this PR?

I tested this change locally.

Pull Request Checklist

sonarcloud[bot] commented 4 months ago

Quality Gate Passed Quality Gate passed

Issues
2 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud