josephsbrown1 / peptide-map Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
This is awesome work.
I am trying to encode some peptides and generate the plots using
Make_Map_Encode_Peptide_and_Dim_Reduce.ipynb
When I tried with my sequences I found that there shouldn't be any duplicate sequences in the input. So, adding
df.drop_duplicates(subset=['Peptide'])
is probably a good idea.
Now, everything works if I trim the sequences to the same length before processing, but if the length of the sequences is different, I get
File ~/anaconda3/envs/EsmFold-jupyter/lib/python3.9/site-packages/pandas/core/internals/blocks.py:1428, in Block.setitem(self, indexer, value, using_cow)
1425 if isinstance(casted, np.ndarray) and casted.ndim == 1 and len(casted) == 1:
1426 # NumPy 1.25 deprecation: https://github.com/numpy/numpy/pull/10615
1427 casted = casted[0, ...]
-> 1428 values[indexer] = casted
1429 return self
ValueError: could not broadcast input array from shape (32,) into shape (34,)
Have you seen this error?
I would be really grateful for any suggestions.
Amin.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.