You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to start with the skeleton of our package, let's create a dummy predict function that given a list of UniProt accessions (protein IDs) & a list of GO terms, returns a CAFA-formatted pandasdataframe of predictions fulfilled with random probabilities
We can define another name for it after, but for now, let's call our package manas-cafa5.
When the package is installed we should be able to run
We will use the pandas package here because it is widely used in Python to handle tabular data, all the plotting libraries accept it as input, it is easily interconvertible with numpy arrays, etc.
In order to start with the skeleton of our package, let's create a dummy
predict
function that given a list of UniProt accessions (protein IDs) & a list of GO terms, returns a CAFA-formattedpandas
dataframe of predictions fulfilled with random probabilitiesWe can define another name for it after, but for now, let's call our package
manas-cafa5
.When the package is installed we should be able to run
And then when printing the
predictions
var we should see the dataframe as follows:We will use the
pandas
package here because it is widely used in Python to handle tabular data, all the plotting libraries accept it as input, it is easily interconvertible withnumpy
arrays, etc.Here the official tutorial about python packaging: https://packaging.python.org/en/latest/tutorials/packaging-projects/
The text was updated successfully, but these errors were encountered: