Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Screen Compounds Against Target Properties | Virtual Screening and Compound Ranking
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Python for Chemoinformatics

bookChallenge: Screen Compounds Against Target Properties

Oppgave

Swipe to start coding

Write a function rank_candidates that takes a pandas DataFrame with two columns: smiles (molecular SMILES strings) and predicted_activity (numerical scores). Your function should:

  • Sort the DataFrame by predicted_activity in descending order;
  • Assign a new column rank with integer ranks (1 for highest score, 2 for next, etc.);
  • Return the ranked DataFrame with the new rank column included.

You should not modify the input DataFrame in-place; return a new DataFrame.

Løsning

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 3. Kapittel 4
single

single

Spør AI

expand

Spør AI

ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

Suggested prompts:

Can you explain this in simpler terms?

What are the main points I should remember?

Can you give me an example?

close

bookChallenge: Screen Compounds Against Target Properties

Sveip for å vise menyen

Oppgave

Swipe to start coding

Write a function rank_candidates that takes a pandas DataFrame with two columns: smiles (molecular SMILES strings) and predicted_activity (numerical scores). Your function should:

  • Sort the DataFrame by predicted_activity in descending order;
  • Assign a new column rank with integer ranks (1 for highest score, 2 for next, etc.);
  • Return the ranked DataFrame with the new rank column included.

You should not modify the input DataFrame in-place; return a new DataFrame.

Løsning

Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 3. Kapittel 4
single

single

some-alt