Challenge: Calculate Genome Coverage
Task
Swipe to start coding
Write a Python function that calculates genome coverage from sequencing read start positions.
- Accept a list of integers,
read_starts, representing the start position of each read. - Accept an integer,
genome_length, representing the total length of the genome. - Return a list of integers of length
genome_length, where each element at indexiis the number of reads that start at positioni.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 2. ChapterΒ 4
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Suggested prompts:
Can you explain this in simpler terms?
What are the main points I should remember?
Can you give me an example?
Awesome!
Completion rate improved to 6.25
Challenge: Calculate Genome Coverage
Swipe to show menu
Task
Swipe to start coding
Write a Python function that calculates genome coverage from sequencing read start positions.
- Accept a list of integers,
read_starts, representing the start position of each read. - Accept an integer,
genome_length, representing the total length of the genome. - Return a list of integers of length
genome_length, where each element at indexiis the number of reads that start at positioni.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 2. ChapterΒ 4
single